Merge branch 'master' of https://git.difuse.io/Difuse/difuse-playwright into Testing-Progress
This commit is contained in:
commit
120dbd9a53
2 changed files with 8 additions and 3 deletions
|
@ -19,3 +19,7 @@ Copy the `.env.sample` file to `.env` and fill in the required values.
|
||||||
```bash
|
```bash
|
||||||
npm run test
|
npm run test
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Use `npm run lint:check` to check for linting errors and `npm run lint:fix` to fix them.
|
|
@ -5,14 +5,15 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "semistandard --fix tests/**/*.js",
|
"lint:check": "semistandard tests/**/*.js"
|
||||||
|
"lint:fix": "semistandard --fix tests/**/*.js",
|
||||||
"codegen": "npx playwright codegen",
|
"codegen": "npx playwright codegen",
|
||||||
"test": "playwright test",
|
"test": "playwright test",
|
||||||
"prepare": "npm run lint"
|
"prepare": "npm run lint"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"pre-commit": "npm run lint"
|
"pre-commit": "npm run lint:fix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
|
Loading…
Reference in a new issue