More test stuff

This commit is contained in:
Viktor Sarström 2021-10-15 22:07:03 +02:00
parent 38c21ff708
commit e9d82745ce
10 changed files with 197 additions and 687 deletions

View File

@ -28,7 +28,7 @@ jobs:
- name: Run linting and tests
run: |
yarn run lint
yarn run test
yarn nx run-many --all --target=lint
yarn nx run-many --all --target=test
env:
CI: true

View File

@ -1,3 +0,0 @@
{
"presets": ["module:metro-react-native-babel-preset"]
}

View File

@ -1,4 +1,15 @@
module.exports = {
plugins: ['jest-hoist'],
presets: ['module:metro-react-native-babel-preset'],
}
module.exports = function(api) {
api.cache(true);
const presets = [
'module:metro-react-native-babel-preset'
];
const plugins = [
'jest-hoist',
["@babel/plugin-proposal-private-property-in-object", { "loose": false }]
];
return {
presets,
plugins
};
};

View File

@ -1,3 +0,0 @@
{
"presets": ["module:metro-react-native-babel-preset"]
}

View File

@ -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
};
};

View File

@ -1,12 +0,0 @@
{
"presets": [
[
"@nrwl/react/babel",
{
"runtime": "automatic",
"useBuiltIns": "usage"
}
]
],
"plugins": []
}

View File

@ -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
};
};

View File

@ -8,5 +8,5 @@ module.exports = {
coverageDirectory: '../../coverage/libs/hooks',
testEnvironment: 'jsdom',
clearMocks: true,
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.js']
}

View File

@ -73,16 +73,16 @@
"devDependencies": {
"@babel/core": "^7.15.8",
"@babel/eslint-parser": "^7.15.8",
"@nrwl/cli": "12.9.0",
"@nrwl/detox": "12.9.0",
"@nrwl/cli": "12.10.0",
"@nrwl/detox": "12.10.0",
"@nrwl/eslint-plugin-nx": "^12.10.0",
"@nrwl/jest": "12.9.0",
"@nrwl/linter": "12.9.0",
"@nrwl/react": "12.9.0",
"@nrwl/react-native": "^12.9.0",
"@nrwl/tao": "12.9.0",
"@nrwl/web": "12.9.0",
"@nrwl/workspace": "12.9.0",
"@nrwl/jest": "12.10.0",
"@nrwl/linter": "12.10.0",
"@nrwl/react": "12.10.0",
"@nrwl/react-native": "^12.10.0",
"@nrwl/tao": "12.10.0",
"@nrwl/web": "12.10.0",
"@nrwl/workspace": "12.10.0",
"@react-native-community/cli": "6.0.0",
"@react-native-community/cli-platform-android": "6.0.0",
"@react-native-community/cli-platform-ios": "6.0.0",

778
yarn.lock

File diff suppressed because it is too large Load Diff