-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multiplatform package.json and test:watch (#1037)
* rm command (not in windows) has been replaced with rimraf * cross-env has been extended to all the scripts which contain enviroment variables * & parallel operator (not in windows) has been replaced with npm-run-all run-p command * cp command (not in windows) has been replaced with shx, rimraf is no more necessary * added script test:watch, it uses ts-jest to check if a file has been changed, then it runs the tests * fix test * update test:integration * update test:integration Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: minotogna <[email protected]>
- Loading branch information
1 parent
2e91ce3
commit 51b748e
Showing
4 changed files
with
213 additions
and
62 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 |
---|---|---|
@@ -1,6 +1,20 @@ | ||
module.exports = { | ||
roots: ['<rootDir>/dist/'], | ||
preset: 'ts-jest/presets/js-with-ts', | ||
testEnvironment: 'node', | ||
testPathIgnorePatterns: ['/node_modules/'], | ||
roots: ['<rootDir>'], | ||
verbose: true, | ||
testRegex: 'dist/test/integration/index.js', | ||
testMatch: ['**/integration/index.ts'], | ||
moduleDirectories: ['node_modules'], | ||
moduleNameMapper: { | ||
"@common/(.*)": "<rootDir>/common/$1", | ||
"@core/(.*)": "<rootDir>/core/$1", | ||
"@server/(.*)": "<rootDir>/server/$1", | ||
"@test/(.*)": "<rootDir>/test/$1" | ||
}, | ||
globals: { | ||
'ts-jest': { | ||
tsconfig: 'tsconfig.test.json', | ||
}, | ||
}, | ||
} |
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,25 +1,3 @@ | ||
{ | ||
"allowSyntheticDefaults": true, | ||
"include": ["core", "common", "server", | ||
"test/integration" | ||
], | ||
"exclude": ["node_modules"], | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"allowSyntheticDefaultImports": true, | ||
"skipLibCheck": true, | ||
"module": "CommonJS", | ||
"moduleResolution": "Node", | ||
"noImplicitAny": true, | ||
"outDir": "./dist/", | ||
"baseUrl": ".", | ||
"paths": { | ||
"@core/*": ["core/*"], | ||
"@common/*": ["common/*"], | ||
"@server/*": ["server/*"], | ||
"@test/*": ["test/*"] | ||
}, | ||
"target": "es2020", | ||
"lib": ["es2020", "esnext"] | ||
} | ||
"extends": "./tsconfig.json" | ||
} |
Oops, something went wrong.