Skip to content

Commit

Permalink
chore: do some chore tasks
Browse files Browse the repository at this point in the history
- remove node-sass
- update vitest config & ci chromium install command
  • Loading branch information
netil committed Aug 12, 2024
1 parent 8f792f9 commit c63a411
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 866 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
npm config set package-lock false
npm install --save --legacy-peer-deps
npx playwright install
npx playwright install-deps
- name: Lint
run: npm run lint
Expand Down
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@

npm run format
npm run lint-staged
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@
"jsdoc": "^4.0.3",
"lint-staged": "^15.2.7",
"mini-css-extract-plugin": "^2.9.0",
"node-sass": "^9.0.0",
"playwright": "^1.46.0",
"regenerator-runtime": "^0.14.1",
"rollup": "^4.19.1",
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@
"test/**/*.ts"
],
"noEmit": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"types": [
"@vitest/browser/providers/webdriverio",
"@vitest/browser/providers/playwright"
]
}
7 changes: 4 additions & 3 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {resolve} from "node:path";
import { defineConfig } from "vitest/config";
import {defineConfig} from "vitest/config";

export default defineConfig({
test: {
Expand All @@ -16,7 +16,7 @@ export default defineConfig({
extension: ["ts"]
},
include: [
"test/**/*-spec.ts",
"test/**/*-spec.ts"
],
exclude: [
"src/**/**",
Expand All @@ -42,7 +42,8 @@ export default defineConfig({
launch: {
devtools: true
}
}
},
screenshotFailures: false
},
alias: [
{
Expand Down
Loading

0 comments on commit c63a411

Please sign in to comment.