setup jest-puppeteer

This commit is contained in:
LouisLam
2021-10-03 18:16:55 +08:00
parent 446fc1af0b
commit a2a4c70cf5
7 changed files with 6225 additions and 5 deletions

View File

@@ -91,6 +91,23 @@ module.exports = {
"rules": {
"comma-dangle": ["error", "always-multiline"],
}
},
// Override for jest puppeteer
{
"files": [
"**/*.spec.js",
"**/*.spec.jsx"
],
env: {
jest: true,
},
globals: {
page: true,
browser: true,
context: true,
jestPuppeteer: true,
},
}
]
};