Content-Length: 776045 | pFad | http://github.com/NativeScript/NativeScript/commit/86dad3c714a5f65d2886fdb5ef20500bd0ca9bf7

44 test: standardized jest unit testing (#10047) · NativeScript/NativeScript@86dad3c · GitHub
Skip to content

Commit 86dad3c

Browse files
authored
test: standardized jest unit testing (#10047)
1 parent 66e8e39 commit 86dad3c

File tree

104 files changed

+6466
-12787
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+6466
-12787
lines changed

Diff for: .github/workflows/apps_automated.yml

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
- name: Setup
4343
run: npm run setup
4444

45+
- name: Unit Tests
46+
run: npx nx run-many --target=test --configuration=ci --projects=core
47+
4548
- name: Create Emulator
4649
uses: rigor789/action-create-emulator@main
4750

Diff for: .travis.yml

-10
This file was deleted.

Diff for: jest.preset.js

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
const nxPreset = require('@nrwl/jest/preset').default;
2-
module.exports = {
3-
...nxPreset,
4-
testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'],
5-
transform: {
6-
'^.+\\.(ts|js|html)$': 'ts-jest',
7-
},
8-
resolver: '@nrwl/jest/plugins/resolver',
9-
moduleFileExtensions: ['ts', 'js', 'html'],
10-
coverageReporters: ['html'],
11-
};
2+
3+
module.exports = { ...nxPreset };

Diff for: package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
"@nrwl/jest": "15.2.1",
2929
"@nrwl/node": "15.2.1",
3030
"@nrwl/workspace": "15.2.1",
31-
"@nstudio/focus": "^14.3.0",
31+
"@nstudio/focus": "^15.0.0",
3232
"@nstudio/nps-i": "~2.0.0",
3333
"@prettier/plugin-xml": "^2.2.0",
3434
"@types/chai": "^4.2.11",
35-
"@types/jest": "28.1.8",
35+
"@types/jest": "29.2.3",
3636
"@types/mocha": "^7.0.2",
3737
"@types/node": "18.7.1",
3838
"@typescript-eslint/eslint-plugin": "^5.30.0",
@@ -47,7 +47,7 @@
4747
"eslint-config-prettier": "^8.1.0",
4848
"gonzales": "^1.0.7",
4949
"husky": "^8.0.1",
50-
"jest": "28.1.3",
50+
"jest": "29.3.1",
5151
"lint-staged": "^13.0.1",
5252
"mocha": "^8.0.1",
5353
"mocha-typescript": "^1.1.17",
@@ -61,9 +61,10 @@
6161
"sass": "^1.45.2",
6262
"shady-css-parser": "^0.1.0",
6363
"tree-kill": "^1.2.2",
64-
"ts-jest": "28.0.8",
64+
"ts-jest": "29.0.3",
6565
"ts-node": "10.9.1",
6666
"ts-patch": "^2.0.1",
67+
"tslib": "^2.4.0",
6768
"tslint": "6.1.3",
6869
"tslint-to-eslint-config": "^2.13.0",
6970
"typedoc": "^0.22.17",

Diff for: packages/core/__tests__/.mocharc.yml

-49
This file was deleted.

Diff for: packages/core/__tests__/WritingUnitTests.md

-88
This file was deleted.

Diff for: packages/core/__tests__/common-types.d.ts

-33
This file was deleted.

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/NativeScript/commit/86dad3c714a5f65d2886fdb5ef20500bd0ca9bf7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy