Skip to content

Commit

Permalink
Merge pull request #1006 from bugsnag/convert-tests-to-jest-3
Browse files Browse the repository at this point in the history
test(delivery-node, delivery-x-domain-request): convert tests
  • Loading branch information
djskinner authored Aug 20, 2020
2 parents 2d048e1 + 1d1c79d commit 59542f1
Show file tree
Hide file tree
Showing 17 changed files with 5,000 additions and 8,896 deletions.
3 changes: 2 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ module.exports = api => {
if (api && api.env('test')) {
presets.push('@babel/preset-typescript')
plugins.push(['@babel/plugin-proposal-class-properties', { loose: true }])
plugins.push(['@babel/plugin-transform-modules-commonjs'])
plugins.push('@babel/plugin-transform-modules-commonjs')
plugins.push('@babel/plugin-proposal-optional-chaining')
overrides.push({
test: 'node_modules/react-native/**/*',
presets: ['module:metro-react-native-babel-preset']
Expand Down
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
displayName: 'browser',
testMatch: [
testsForPackage('browser'),
testsForPackage('delivery-x-domain-request'),
testsForPackage('plugin-react'),
testsForPackage('plugin-vue'),
testsForPackage('plugin-browser-context'),
Expand Down Expand Up @@ -51,6 +52,7 @@ module.exports = {
displayName: 'node plugins',
testEnvironment: 'node',
testMatch: [
testsForPackage('delivery-node'),
testsForPackage('plugin-server-*'),
testsForPackage('plugin-strip-project-root'),
testsForPackage('plugin-intercept'),
Expand Down
5,244 changes: 3,726 additions & 1,518 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"@babel/core": "^7.8.4",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-arrow-functions": "^7.8.3",
"@babel/plugin-transform-block-scoping": "^7.8.3",
Expand All @@ -17,14 +18,14 @@
"@babel/plugin-transform-spread": "^7.8.3",
"@babel/plugin-transform-template-literals": "^7.8.3",
"@babel/preset-react": "^7.9.4",
"@babel/preset-typescript": "^7.8.3",
"@babel/preset-typescript": "^7.10.4",
"@types/jest": "^25.1.2",
"@types/node": "^13.7.1",
"@types/react": "^16.9.23",
"@types/react-test-renderer": "^16.9.2",
"@typescript-eslint/eslint-plugin": "^2.19.2",
"@typescript-eslint/parser": "^2.19.2",
"babel-jest": "^25.1.0",
"babel-jest": "^26.3.0",
"babel-preset-react-native": "^4.0.1",
"babelify": "^10.0.0",
"browser-pack-flat": "^3.2.0",
Expand All @@ -41,7 +42,7 @@
"eslint-plugin-react": "^7.18.3",
"eslint-plugin-standard": "^4.0.1",
"exorcist": "^1.0.1",
"jest": "^25.1.0",
"jest": "^26.4.0",
"lerna": "^3.19.0",
"metro-react-native-babel-preset": "^0.58.0",
"ncp": "^2.0.0",
Expand All @@ -52,7 +53,7 @@
"react-test-renderer": "^16.13.1",
"rimraf": "^3.0.0",
"timekeeper": "^2.2.0",
"typescript": "^3.9.2",
"typescript": "^3.9.7",
"uglify-js": "^3.4.9"
},
"scripts": {
Expand Down
Loading

0 comments on commit 59542f1

Please sign in to comment.