-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from ilionic/chore/jest-improve-tests
Switch to Jest, refactor tests
- Loading branch information
Showing
23 changed files
with
4,466 additions
and
1,140 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.snap linguist-generated=true | ||
test/mocks/* linguist-generated=true |
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,3 +1,4 @@ | ||
.DS_Store | ||
node_modules | ||
*.log | ||
build | ||
|
@@ -12,3 +13,4 @@ dist-cli | |
/remarks*.json | ||
/dump-*.json | ||
throwaway.js | ||
coverage |
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,21 @@ | ||
module.exports = (api) => { | ||
if (api) api.cache(true); | ||
return { | ||
presets: [ | ||
"@babel/typescript", | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
targets: { browsers: "defaults, not ie 11", node: true }, | ||
modules: false, | ||
useBuiltIns: false, | ||
loose: true, | ||
}, | ||
], | ||
], | ||
plugins: [ | ||
"@babel/plugin-proposal-optional-chaining", | ||
"@babel/plugin-transform-modules-commonjs", | ||
], | ||
}; | ||
}; |
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,15 @@ | ||
module.exports = { | ||
transform: { | ||
"^.+\\.(t|j)sx?$": "babel-jest", | ||
}, | ||
transformIgnorePatterns: [ | ||
"/node_modules/(?!(@polkadot|@babel/runtime/helpers/esm/))", | ||
], | ||
collectCoverage: true, | ||
collectCoverageFrom: [ | ||
"src/tools/utils.ts", | ||
"src/tools/validate-remark.ts", | ||
"src/tools/consolidator/consolidator.ts", | ||
"src/rmrk1.0.0/classes/*", | ||
], | ||
}; |
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
Oops, something went wrong.