Skip to content

Commit

Permalink
chore: [arco-scripts] add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Helium-Z committed Mar 31, 2022
1 parent 276bdaf commit f0795c4
Show file tree
Hide file tree
Showing 20 changed files with 2,104 additions and 15 deletions.
13 changes: 13 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { Config } from '@jest/types';

const config: Config.InitialOptions = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
collectCoverageFrom: ['packages/*/src/*.{j,t}s'],
testRegex: '.*\\.test\\.(j|t)sx?$',
testPathIgnorePatterns: ['/node_modules/'],
transformIgnorePatterns: ['node_modules/[^/]+?/(?!(es|node_modules)/)'],
};

export default config;
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@types/gulp": "^4.0.8",
"@types/gulp-if": "^0.0.33",
"@types/gulp-plumber": "^0.0.32",
"@types/jest": "^27.4.1",
"@types/merge-stream": "^1.1.2",
"@types/node": "^15.6.0",
"@types/through2": "^2.0.36",
Expand All @@ -35,11 +36,14 @@
"eslint-plugin-typescript": "^0.14.0",
"fs-extra": "^9.0.0",
"husky": "^4.3.0",
"jest": "^27.0.6",
"lerna": "^3.21.0",
"lint-staged": "^10.2.4",
"prettier": "^2.0.5",
"stylelint": "^13.4.1",
"stylelint-config-standard": "^20.0.0",
"ts-jest": "^27.0.3",
"ts-node": "^10.7.0",
"typescript": "^4.4.3"
},
"lint-staged": {
Expand Down
Loading

0 comments on commit f0795c4

Please sign in to comment.