Skip to content

Commit

Permalink
test: Run jest in jsdom 16 (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 5, 2020
1 parent 3a10b94 commit 7ca37ff
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 252 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"eslint-plugin-jest": "^23.13.2",
"jest": "^26.0.1",
"jest-diff": "^26.0.1",
"jest-environment-jsdom-thirteen": "^1.0.1",
"jest-junit": "^10.0.0",
"js-yaml": "^3.14.0",
"jsdom": "^16.2.2",
Expand Down
1 change: 0 additions & 1 deletion scripts/jest/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const path = require("path");
module.exports = {
coverageDirectory: path.resolve(__dirname, "../../coverage"),
rootDir: path.resolve(__dirname, "../../sources"),
testEnvironment: "jest-environment-jsdom-thirteen",
testPathIgnorePatterns: [
"/node_modules/",
"/fixtures/",
Expand Down
2 changes: 1 addition & 1 deletion sources/__tests__/getRole.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const cases = [
["input type=checkbox", "checkbox", createElementFactory("input", {type: "checkbox"})],
["input type=color", null, createElementFactory("input", {type: "color"})],
["input type=date", null, createElementFactory("input", {type: "date"})],
["input type=datetime", null, createElementFactory("input", {type: "datetime"})],
["input type=datetime-local", null, createElementFactory("input", {type: "datetime-local"})],
["input type=email", "textbox", createElementFactory("input", {type: "email"})],
["input type=file", null, createElementFactory("input", {type: "file"})],
["input type=hidden", null, createElementFactory("input", {type: "hidden"})],
Expand Down
Loading

0 comments on commit 7ca37ff

Please sign in to comment.