Skip to content

Commit

Permalink
update vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
bichikim committed Jun 9, 2023
1 parent b0f1ac2 commit f475134
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 1 deletion.
7 changes: 7 additions & 0 deletions apps/nuxt/pages/test.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {describe, expect, it} from 'vitest'

describe('vitest', () => {
it('works well', () => {
expect('1').toBe('1')
})
})
6 changes: 6 additions & 0 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "@byte-abc/utils",
"version": "1.0.0",
"dependencies": {
}
}
7 changes: 7 additions & 0 deletions packages/utils/src/test.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {describe, expect, it} from 'vitest'

describe('vitest', () => {
it('works well', () => {
expect('1').toBe('1')
})
})
8 changes: 8 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/// <reference types="vitest" />
import {defineConfig} from 'vite'

export default defineConfig({
test: {
// ...
},
})
Empty file added vitest.config.ts
Empty file.
2 changes: 1 addition & 1 deletion vitest.workspace.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {defineWorkspace} from 'vitest/config'
export default defineWorkspace([
//
'packages/*',
'apps/*',
'packages/*',
])

0 comments on commit f475134

Please sign in to comment.