This repository has been archived by the owner on Feb 25, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove @nrwl/react being added to workspace since react native project does not have directly reference to @nrwl/react - update nx version to 12.4.0 - remove jest.useFakeTimers in test-setup - add migration scripts
- Loading branch information
Showing
29 changed files
with
1,887 additions
and
1,543 deletions.
There are no files selected for viewing
File renamed without changes.
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,14 +1,11 @@ | ||
module.exports = { | ||
name: 'react-native-e2e', | ||
preset: '../../jest.config.js', | ||
globals: { | ||
'ts-jest': { | ||
tsConfig: '<rootDir>/tsconfig.spec.json', | ||
}, | ||
}, | ||
preset: '../../jest.preset.js', | ||
transform: { | ||
'^.+\\.[tj]s$': 'ts-jest', | ||
'^.+\\.[tj]sx?$': 'ts-jest', | ||
}, | ||
moduleFileExtensions: ['ts', 'js', 'html'], | ||
coverageDirectory: '../../coverage/e2e/react-native-e2e', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], | ||
maxWorkers: 1, | ||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, | ||
displayName: 'e2e-react-native', | ||
testTimeout: 600000, | ||
}; |
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,9 +1,6 @@ | ||
module.exports = { | ||
testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'], | ||
transform: { | ||
'^.+\\.(ts|js|html)$': 'ts-jest', | ||
}, | ||
resolver: '@nrwl/jest/plugins/resolver', | ||
moduleFileExtensions: ['ts', 'js', 'html'], | ||
coverageReporters: ['html'], | ||
projects: [ | ||
'<rootDir>/packages/react-native', | ||
'<rootDir>/e2e/react-native-e2e', | ||
], | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const nxPreset = require('@nrwl/jest/preset'); | ||
|
||
module.exports = { ...nxPreset }; |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"migrations": [ | ||
{ | ||
"version": "12.4.0-beta.1", | ||
"cli": "nx", | ||
"description": "Add testEnvironment: 'jsdom' in web apps + libraries", | ||
"factory": "./src/migrations/update-12-4-0/add-test-environment-for-node", | ||
"package": "@nrwl/jest", | ||
"name": "support-jest-27" | ||
}, | ||
{ | ||
"version": "12.4.0-beta.1", | ||
"cli": "nx", | ||
"description": "Support for Jest 27 via updating ts-jest + jest-preset-angular", | ||
"factory": "./src/migrations/update-12-4-0/update-jest-preset-angular", | ||
"package": "@nrwl/jest", | ||
"name": "update-ts-jest-and-jest-preset-angular" | ||
}, | ||
{ | ||
"cli": "nx", | ||
"version": "12.4.0-beta.0", | ||
"description": "Remove ESLint parserOptions.project config if no rules requiring type-checking are in use", | ||
"factory": "./src/migrations/update-12-4-0/remove-eslint-project-config-if-no-type-checking-rules", | ||
"package": "@nrwl/linter", | ||
"name": "remove-eslint-project-config-if-no-type-checking-rules" | ||
} | ||
] | ||
} |
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,14 +1,11 @@ | ||
module.exports = { | ||
name: 'react-native', | ||
preset: '../../jest.config.js', | ||
globals: { | ||
'ts-jest': { | ||
tsConfig: '<rootDir>/tsconfig.spec.json', | ||
}, | ||
}, | ||
preset: '../../jest.preset.js', | ||
transform: { | ||
'^.+\\.[tj]sx?$': 'ts-jest', | ||
}, | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], | ||
coverageDirectory: '../../coverage/packages/react-native', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html', 'json'], | ||
globals: { | ||
'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' }, | ||
}, | ||
displayName: 'react-native', | ||
}; |
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
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
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
2 changes: 1 addition & 1 deletion
2
...ive/src/generators/application/files/app/android/gradle/wrapper/gradle-wrapper.properties
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
Oops, something went wrong.