File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,13 @@ steps:
20
20
args :
21
21
- -c
22
22
- npm ci
23
- - id : Run tests
23
+ - id : Run unit tests
24
24
name : ' node:${_VERSION}'
25
25
entrypoint : /bin/bash
26
26
dir : packages/toolbox-core
27
- env :
28
- - TOOLBOX_URL=$_TOOLBOX_URL
29
- - TOOLBOX_VERSION=$_TOOLBOX_VERSION
30
- - GOOGLE_CLOUD_PROJECT=$PROJECT_ID
31
27
args :
32
28
- ' -c'
33
- - npm test
29
+ - npm run test:unit
34
30
options :
35
31
logging : CLOUD_LOGGING_ONLY
36
32
substitutions :
Original file line number Diff line number Diff line change 1
1
{
2
2
"testMatch" : [
3
- " <rootDir>/test/** "
3
+ " <rootDir>/test/*.ts "
4
4
],
5
5
"preset" : " ts-jest" ,
6
6
"testEnvironment" : " node"
Original file line number Diff line number Diff line change 34
34
"compile" : " tsc -p ." ,
35
35
"prepare" : " npm run compile" ,
36
36
"webpack" : " webpack" ,
37
- "test" : " cross-env NODE_OPTIONS=--experimental-vm-modules jest"
37
+ "test:unit" : " cross-env NODE_OPTIONS=--experimental-vm-modules jest --config jest.config.json" ,
38
+ "coverage" : " cross-env NODE_OPTIONS=--experimental-vm-modules jest --config jest.config.json --coverage"
38
39
},
39
40
"devDependencies" : {
40
41
"@types/jest" : " ^29.5.14" ,
You can’t perform that action at this time.
0 commit comments