Skip to content

Commit cbe50ab

Browse files
authored
Merge pull request #250 from LabKey/fb_merge_23.7_to_develop
Merge discvr-23.7 to develop
2 parents c884b30 + daa209b commit cbe50ab

File tree

7 files changed

+1958
-14715
lines changed

7 files changed

+1958
-14715
lines changed

jbrowse/jest.config.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
globals: {
3+
LABKEY: {},
4+
},
5+
moduleFileExtensions: ['ts', 'tsx', 'js'],
6+
moduleNameMapper: {
7+
'\\.(css)$': '<rootDir>/src/client/test/styleMock.ts',
8+
},
9+
roots: ['<rootDir>'],
10+
setupFilesAfterEnv: [
11+
'./src/client/test/jest.setup.ts'
12+
],
13+
testEnvironment: 'jsdom',
14+
testPathIgnorePatterns: [
15+
'/node_modules/'
16+
],
17+
testRegex: '(\\.(spec))\\.(ts|tsx)$',
18+
transform: {
19+
'^.+\\.tsx?$': [
20+
'ts-jest',
21+
{
22+
tsconfig: 'node_modules/@labkey/build/webpack/tsconfig.json',
23+
}
24+
],
25+
},
26+
};

jbrowse/package-lock.json

Lines changed: 1922 additions & 14667 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jbrowse/package.json

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"@jbrowse/plugin-svg": "^2.6.2",
2222
"@jbrowse/plugin-variants": "^2.6.2",
2323
"@jbrowse/react-linear-genome-view": "^2.6.2",
24-
"@labkey/api": "^1.22.0",
25-
"@labkey/components": "^2.355.0",
24+
"@labkey/api": "^1.25.0",
25+
"@labkey/components": "^2.381.1",
2626
"@mui/x-data-grid": "^6.0.1",
2727
"assert": "^2.0.0",
2828
"browserify-zlib": "^0.2.0",
@@ -48,7 +48,7 @@
4848
"xlsx": "https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz"
4949
},
5050
"devDependencies": {
51-
"@labkey/build": "6.10.0",
51+
"@labkey/build": "6.15.0",
5252
"@types/jest": "^29.0.0",
5353
"@types/jexl": "^2.3.1",
5454
"@types/jquery": "^3.0.0",
@@ -57,28 +57,9 @@
5757
"enzyme": "^3.11.0",
5858
"jest": "^29.0.0",
5959
"jest-cli": "^29.0.0",
60+
"jest-environment-jsdom": "^29.7.0",
6061
"jest-mock": "^29.0.0",
6162
"rimraf": "^3.0.2",
6263
"ts-jest": "^29.0.0"
63-
},
64-
"jest": {
65-
"globals": {
66-
"LABKEY": {}
67-
},
68-
"moduleFileExtensions": [
69-
"ts",
70-
"tsx",
71-
"js"
72-
],
73-
"setupFilesAfterEnv": [
74-
"<rootDir>/test/jest.setup.ts"
75-
],
76-
"moduleNameMapper": {
77-
"\\.(css|scss)$": "<rootDir>/test/styleMock.ts"
78-
},
79-
"testRegex": "(\\.(test|spec))\\.(ts|tsx)$",
80-
"transform": {
81-
"^.+\\.tsx?$": "ts-jest"
82-
}
8364
}
8465
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import 'regenerator-runtime/runtime';
2+
import { configure } from 'enzyme';
3+
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
4+
5+
configure({ adapter: new Adapter() });

jbrowse/test/jest.setup.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

jbrowse/tsconfig.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
{
2-
"compilerOptions": {
3-
"target": "es6",
4-
"jsx": "react",
5-
"sourceMap": false,
6-
"moduleResolution": "node",
7-
"allowSyntheticDefaultImports": true,
8-
"esModuleInterop": true,
9-
"types": ["jest"] // implicitly include only jest types; otherwise get those included via import
10-
},
11-
"exclude": [
12-
"node_modules",
13-
"resources"
14-
]
2+
"extends": "./node_modules/@labkey/build/webpack/tsconfig.json"
153
}
164

0 commit comments

Comments
 (0)