mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
test: standardized jest unit testing (#10047)
This commit is contained in:
@@ -15,7 +15,13 @@
|
||||
"executor": "@nrwl/jest:jest",
|
||||
"options": {
|
||||
"jestConfig": "packages/core/jest.config.ts",
|
||||
"passWithNoTests": true
|
||||
"passWithNoTests": true,
|
||||
"verbose": true
|
||||
},
|
||||
"configurations": {
|
||||
"ci": {
|
||||
"ci": true
|
||||
}
|
||||
},
|
||||
"outputs": ["{workspaceRoot}/coverage/packages/core"]
|
||||
},
|
||||
@@ -33,22 +39,6 @@
|
||||
"cwd": ".",
|
||||
"parallel": false
|
||||
}
|
||||
},
|
||||
"unit": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"commands": ["../../../node_modules/.bin/tsc -p tsconfig.json && ../../../node_modules/.bin/mocha --config=.mocharc.yml"],
|
||||
"cwd": "packages/core/__tests__",
|
||||
"parallel": false
|
||||
}
|
||||
},
|
||||
"unit.watch": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"commands": ["../../../node_modules/.bin/tsc -p tsconfig.json && ../../../node_modules/.bin/mocha --watch --config=.mocharc.yml"],
|
||||
"cwd": "packages/core/__tests__",
|
||||
"parallel": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user