Skip to content

Commit 7db059b

Browse files
committed
bridge: update to jest 28
This now _hides_ the (false-positive) ts-jest import errors, but it is not fixing them yet. @vue/cli-plugin-jest is still pinned to jest 27 in its newest version, so it had to be removed and we now need to depend on some jest utilities explicitly, as we're using them explicitly. This is probably a good thing. Change-Id: I66a86e47fd3a4b32df5da8774e7d28c1559cb2da
1 parent a96457c commit 7db059b

File tree

11 files changed

+5908
-3983
lines changed

11 files changed

+5908
-3983
lines changed

client/data-bridge/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14.17.5
1+
16.19.1

client/data-bridge/jest.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
module.exports = {
2-
preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel',
32
moduleFileExtensions: [
43
'js',
54
'jsx',
@@ -21,10 +20,13 @@ module.exports = {
2120
'jest-serializer-vue',
2221
],
2322
testEnvironment: '<rootDir>/tests/config/JestCustomEnvironment.js',
23+
testEnvironmentOptions: {
24+
customExportConditions: [ 'node', 'node-addons' ],
25+
url: 'https://data-bridge.test/jest',
26+
},
2427
testMatch: [
2528
'**/tests/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)',
2629
],
27-
testURL: 'https://data-bridge.test/jest',
2830
transform: {
2931
'^.+\\.vue$': '@vue/vue3-jest',
3032
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',

0 commit comments

Comments
 (0)