Skip to content

Commit e5376b3

Browse files
committed
Add DOM tests for variant analysis header
1 parent ef22cf1 commit e5376b3

File tree

7 files changed

+335
-15
lines changed

7 files changed

+335
-15
lines changed

extensions/ql-vscode/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
node: true,
1111
es6: true,
1212
},
13-
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
13+
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:jest-dom/recommended"],
1414
rules: {
1515
"@typescript-eslint/no-use-before-define": 0,
1616
"@typescript-eslint/no-unused-vars": [

extensions/ql-vscode/jest.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
// cacheDirectory: "/private/var/folders/6m/1394pht172qgd7dmw1fwjk100000gn/T/jest_dx",
1515

1616
// Automatically clear mock calls, instances, contexts and results before every test
17-
clearMocks: true,
17+
// clearMocks: true,
1818

1919
// Indicates whether the coverage information should be collected while executing the test
2020
// collectCoverage: false,
@@ -134,10 +134,10 @@ export default {
134134
// runner: "jest-runner",
135135

136136
// The paths to modules that run some code to configure or set up the testing environment before each test
137-
setupFiles: ['<rootDir>/test/jest.setup.ts'],
137+
// setupFiles: [],
138138

139139
// A list of paths to modules that run some code to configure or set up the testing framework before each test
140-
// setupFilesAfterEnv: [],
140+
setupFilesAfterEnv: ['<rootDir>/test/jest.setup.ts'],
141141

142142
// The number of seconds after which a test is considered as slow and reported as such in the results.
143143
// slowTestThreshold: 5,

extensions/ql-vscode/package-lock.json

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

extensions/ql-vscode/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,7 @@
12501250
"@storybook/manager-webpack5": "^6.5.10",
12511251
"@storybook/react": "^6.5.10",
12521252
"@storybook/testing-library": "^0.0.13",
1253+
"@testing-library/jest-dom": "^5.16.5",
12531254
"@testing-library/react": "^12.1.5",
12541255
"@types/chai": "^4.1.7",
12551256
"@types/chai-as-promised": "~7.1.2",
@@ -1297,6 +1298,7 @@
12971298
"css-loader": "~3.1.0",
12981299
"del": "^6.0.0",
12991300
"eslint": "~6.8.0",
1301+
"eslint-plugin-jest-dom": "^4.0.2",
13001302
"eslint-plugin-react": "~7.19.0",
13011303
"eslint-plugin-storybook": "^0.6.4",
13021304
"file-loader": "^6.2.0",

0 commit comments

Comments
 (0)