Skip to content

Commit

Permalink
chore: use @vitest/coverage-v8 (#92)
Browse files Browse the repository at this point in the history
* chore: use `@vitest/coverage-v8`

* style: formatting

* test: update
  • Loading branch information
ricardogobbosouza authored Jul 21, 2023
1 parent 6c0184d commit b323fc1
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 68 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@nuxt/module-builder": "latest",
"@nuxt/test-utils": "latest",
"@nuxtjs/eslint-config-typescript": "latest",
"@vitest/coverage-c8": "latest",
"@vitest/coverage-v8": "latest",
"changelogen": "latest",
"eslint": "latest",
"nuxt": "latest",
Expand All @@ -57,4 +57,4 @@
"access": "public"
},
"packageManager": "[email protected]"
}
}
91 changes: 27 additions & 64 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export default defineNuxtModule<ModuleOptions>({
failOnWarning: false,
failOnError: true
}),

setup (options, nuxt) {
if (!nuxt.options.dev) {
return
Expand Down
2 changes: 1 addition & 1 deletion test/prod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ describe('prod', async () => {

test('should not added stylelint plugin', () => {
const { nuxt } = useTestContext()
expect(nuxt?.hooks._hooks['vite:extendConfig']).toHaveLength(5)
expect(nuxt?.hooks._hooks['vite:extendConfig']).toHaveLength(6)
})
})

0 comments on commit b323fc1

Please sign in to comment.