This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into config-node-bool
- Loading branch information
Showing
29 changed files
with
2,877 additions
and
2,748 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
testEnvironment: 'node', | ||
testMatch: ['**/test/**/*.js'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,9 @@ | |
"author": "Eli Perelman <[email protected]>", | ||
"license": "MPL-2.0", | ||
"scripts": { | ||
"test": "ava test", | ||
"test": "jest", | ||
"test:types": "tsc -p ./types/test/tsconfig.json", | ||
"lint": "eslint --cache --report-unused-disable-directives --format codeframe \".*.js\" src test", | ||
"lint": "eslint --cache --report-unused-disable-directives --format codeframe \".*.js\" \"*.js\" src test", | ||
"changelog": "auto-changelog --remote upstream --commit-limit false", | ||
"version": "yarn changelog --package && git add CHANGELOG.md" | ||
}, | ||
|
@@ -36,17 +36,17 @@ | |
"@types/node": "^12.12.17", | ||
"@types/tapable": "^1.0.4", | ||
"@types/webpack": "^4.41.0", | ||
"auto-changelog": "^1.16.2", | ||
"ava": "^1.4.1", | ||
"auto-changelog": "^2.0.0", | ||
"babel-eslint": "^10.0.3", | ||
"eslint": "^6.7.2", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-config-prettier": "^6.7.0", | ||
"eslint-plugin-ava": "^9.0.0", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-import": "^2.19.1", | ||
"eslint-plugin-jest": "^23.8.2", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"prettier": "^1.19.1", | ||
"jest": "^25.3.0", | ||
"prettier": "^2.0.4", | ||
"typescript": "^3.7.3", | ||
"webpack": "^4.41.2" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = Class => | ||
module.exports = (Class) => | ||
class extends Class { | ||
before(name) { | ||
if (this.__after) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
import test from 'ava'; | ||
import Chainable from '../src/Chainable'; | ||
const Chainable = require('../src/Chainable'); | ||
|
||
test('Calling .end() returns parent', t => { | ||
test('calling .end() returns parent', () => { | ||
const parent = { parent: true }; | ||
const chain = new Chainable(parent); | ||
|
||
t.is(chain.end(), parent); | ||
expect(chain.end()).toBe(parent); | ||
}); | ||
|
||
test('Using .batch() receives context', t => { | ||
test('using .batch() receives context', () => { | ||
const chain = new Chainable(); | ||
const context = chain.batch(current => { | ||
t.is(current, chain); | ||
const context = chain.batch((current) => { | ||
expect(current).toBe(chain); | ||
}); | ||
|
||
t.is(context, chain); | ||
expect(context).toBe(chain); | ||
}); |
Oops, something went wrong.