More test stuff
This commit is contained in:
parent
38c21ff708
commit
e9d82745ce
|
@ -28,7 +28,7 @@ jobs:
|
||||||
|
|
||||||
- name: Run linting and tests
|
- name: Run linting and tests
|
||||||
run: |
|
run: |
|
||||||
yarn run lint
|
yarn nx run-many --all --target=lint
|
||||||
yarn run test
|
yarn nx run-many --all --target=test
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"presets": ["module:metro-react-native-babel-preset"]
|
|
||||||
}
|
|
|
@ -1,4 +1,15 @@
|
||||||
module.exports = {
|
module.exports = function(api) {
|
||||||
plugins: ['jest-hoist'],
|
api.cache(true);
|
||||||
presets: ['module:metro-react-native-babel-preset'],
|
const presets = [
|
||||||
}
|
'module:metro-react-native-babel-preset'
|
||||||
|
];
|
||||||
|
const plugins = [
|
||||||
|
'jest-hoist',
|
||||||
|
["@babel/plugin-proposal-private-property-in-object", { "loose": false }]
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
presets,
|
||||||
|
plugins
|
||||||
|
};
|
||||||
|
};
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"presets": ["module:metro-react-native-babel-preset"]
|
|
||||||
}
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
module.exports = function(api) {
|
||||||
|
api.cache(true);
|
||||||
|
const presets = [
|
||||||
|
'@nrwl/next/babel',
|
||||||
|
'module:metro-react-native-babel-preset'
|
||||||
|
];
|
||||||
|
const plugins = [
|
||||||
|
["@babel/plugin-proposal-private-property-in-object", { "loose": false }]
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
presets,
|
||||||
|
plugins
|
||||||
|
};
|
||||||
|
};
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"presets": [
|
|
||||||
[
|
|
||||||
"@nrwl/react/babel",
|
|
||||||
{
|
|
||||||
"runtime": "automatic",
|
|
||||||
"useBuiltIns": "usage"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"plugins": []
|
|
||||||
}
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
module.exports = function(api) {
|
||||||
|
api.cache(true);
|
||||||
|
const presets = [
|
||||||
|
[
|
||||||
|
'@nrwl/next/babel',
|
||||||
|
{
|
||||||
|
modules: 'auto',
|
||||||
|
targets: {
|
||||||
|
browsers: ['defaults']
|
||||||
|
},
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@nrwl/react/babel",
|
||||||
|
];
|
||||||
|
const plugins = [
|
||||||
|
'@babel/plugin-transform-runtime',
|
||||||
|
'@babel/plugin-proposal-class-properties',
|
||||||
|
["@babel/plugin-proposal-private-property-in-object", { "loose": false }],
|
||||||
|
"@babel/plugin-transform-runtime",
|
||||||
|
{
|
||||||
|
"regenerator": true,
|
||||||
|
"corejs": 3
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
presets,
|
||||||
|
plugins
|
||||||
|
};
|
||||||
|
};
|
|
@ -8,5 +8,5 @@ module.exports = {
|
||||||
coverageDirectory: '../../coverage/libs/hooks',
|
coverageDirectory: '../../coverage/libs/hooks',
|
||||||
testEnvironment: 'jsdom',
|
testEnvironment: 'jsdom',
|
||||||
clearMocks: true,
|
clearMocks: true,
|
||||||
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.js']
|
||||||
}
|
}
|
||||||
|
|
18
package.json
18
package.json
|
@ -73,16 +73,16 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.15.8",
|
"@babel/core": "^7.15.8",
|
||||||
"@babel/eslint-parser": "^7.15.8",
|
"@babel/eslint-parser": "^7.15.8",
|
||||||
"@nrwl/cli": "12.9.0",
|
"@nrwl/cli": "12.10.0",
|
||||||
"@nrwl/detox": "12.9.0",
|
"@nrwl/detox": "12.10.0",
|
||||||
"@nrwl/eslint-plugin-nx": "^12.10.0",
|
"@nrwl/eslint-plugin-nx": "^12.10.0",
|
||||||
"@nrwl/jest": "12.9.0",
|
"@nrwl/jest": "12.10.0",
|
||||||
"@nrwl/linter": "12.9.0",
|
"@nrwl/linter": "12.10.0",
|
||||||
"@nrwl/react": "12.9.0",
|
"@nrwl/react": "12.10.0",
|
||||||
"@nrwl/react-native": "^12.9.0",
|
"@nrwl/react-native": "^12.10.0",
|
||||||
"@nrwl/tao": "12.9.0",
|
"@nrwl/tao": "12.10.0",
|
||||||
"@nrwl/web": "12.9.0",
|
"@nrwl/web": "12.10.0",
|
||||||
"@nrwl/workspace": "12.9.0",
|
"@nrwl/workspace": "12.10.0",
|
||||||
"@react-native-community/cli": "6.0.0",
|
"@react-native-community/cli": "6.0.0",
|
||||||
"@react-native-community/cli-platform-android": "6.0.0",
|
"@react-native-community/cli-platform-android": "6.0.0",
|
||||||
"@react-native-community/cli-platform-ios": "6.0.0",
|
"@react-native-community/cli-platform-ios": "6.0.0",
|
||||||
|
|
Loading…
Reference in New Issue