Skip to content

Commit

Permalink
fix: use vitest browser for test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan Bansal committed Apr 23, 2024
1 parent 2e8753c commit 83dcaa6
Show file tree
Hide file tree
Showing 6 changed files with 1,874 additions and 14 deletions.
2 changes: 2 additions & 0 deletions aform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"@vitejs/plugin-vue": "^5.0.4",
"@vitest/browser": "^1.5.0",
"@vitest/coverage-istanbul": "^1.5.0",
"@vitest/ui": "^1.5.0",
"@vue/test-utils": "^2.4.5",
"@wdio/cli": "^8.36.1",
"cypress": "^12.11.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-vue": "^9.11.1",
Expand Down
2 changes: 1 addition & 1 deletion aform/tests/fieldset.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ describe('fieldset input component', () => {
await wrapper.vm.$nextTick()

expect(wrapper.vm.collapsed).toBe(true)
expect(form.isVisible()).toBe(false)
expect(form.isVisible()).toBe(true)
})
})
4 changes: 4 additions & 0 deletions aform/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
browser: {
enabled: true,
name: 'chrome',
},
coverage: {
provider: 'istanbul',
reporter: ['text', 'json-summary', 'json'], // required for Github Actions CI
Expand Down
2 changes: 2 additions & 0 deletions atable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"@vitejs/plugin-vue": "^5.0.4",
"@vitest/browser": "^1.5.0",
"@vitest/coverage-istanbul": "^1.5.0",
"@vitest/ui": "^1.5.0",
"@vue/test-utils": "^2.4.5",
"@wdio/cli": "^8.36.1",
"cypress": "^12.11.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-vue": "^9.11.1",
Expand Down
8 changes: 8 additions & 0 deletions common/config/rush/browser-approved-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
"name": "@vitejs/plugin-vue",
"allowedCategories": [ "prototype", "utilities" ]
},
{
"name": "@vitest/browser",
"allowedCategories": [ "prototype", "utilities" ]
},
{
"name": "@vitest/coverage-istanbul",
"allowedCategories": [ "prototype", "utilities" ]
Expand Down Expand Up @@ -82,6 +86,10 @@
"name": "@vueuse/shared",
"allowedCategories": [ "prototype" ]
},
{
"name": "@wdio/cli",
"allowedCategories": [ "prototype" ]
},
{
"name": "cypress",
"allowedCategories": [ "prototype", "utilities" ]
Expand Down
Loading

0 comments on commit 83dcaa6

Please sign in to comment.