Skip to content

Commit 84a1410

Browse files
Move tests to Jest
1 parent c64f3af commit 84a1410

File tree

62 files changed

+134
-174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+134
-174
lines changed

.eslintrc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"env": {
33
"browser": true,
4-
"es2021": true
4+
"es2021": true,
5+
"node": true,
6+
"jest/globals": true
57
},
68
"extends": [
79
"eslint:recommended"
@@ -10,6 +12,9 @@
1012
"ecmaVersion": "latest",
1113
"sourceType": "module"
1214
},
15+
"plugins": [
16+
"jest"
17+
],
1318
"rules": {
1419
"indent": [
1520
"error",
@@ -59,7 +64,12 @@
5964
],
6065
"newline-before-return": "error",
6166
"no-trailing-spaces": "error",
62-
"prefer-const": "error"
67+
"prefer-const": "error",
68+
"jest/no-disabled-tests": "error",
69+
"jest/no-focused-tests": "error",
70+
"jest/no-identical-title": "error",
71+
"jest/prefer-to-have-length": "error",
72+
"jest/valid-expect": "error"
6373
},
6474
"ignorePatterns": [
6575
"**/pkg/*"

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/node_modules
22
/tmp
3-
backstop_data/bitmaps_test
4-
backstop_data/engine_scripts
5-
backstop_data/html_report
63
package-lock.json
4+
/reference_images/__diff_output__

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Only used by Jest.
2+
module.exports = {
3+
presets: ['@babel/preset-env'],
4+
targets: { node: 'current' }
5+
};

backstop.json

Lines changed: 0 additions & 146 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)