Skip to content

Commit

Permalink
vitest/globals
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Sep 14, 2024
1 parent 3d824bb commit 2ce1300
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/build/test/basic.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { existsSync, readFileSync, rmSync } from 'node:fs'
import { build } from 'vite'
import { describe, it, expect, afterAll } from 'vitest'
import buildPlugin from '../src/base'

describe('Base Plugin', () => {
Expand Down
1 change: 0 additions & 1 deletion packages/build/test/bun.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { existsSync, readFileSync, rmSync } from 'node:fs'
import { build } from 'vite'
import { describe, it, expect, afterAll } from 'vitest'
import bunBuildPlugin from '../src/adapter/bun'

describe('Build Plugin with Bun Adapter', () => {
Expand Down
1 change: 0 additions & 1 deletion packages/build/test/cloudflare-pages.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { existsSync, readFileSync, rmSync } from 'node:fs'
import { build } from 'vite'
import { describe, it, expect, afterAll } from 'vitest'
import cloudflarePagesPlugin from '../src/adapter/cloudflare-pages'

describe('Build Plugin with Cloudflare Pages Adapter', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/build/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"module": "ES2022",
"target": "ES2022",
"types": [
"vitest/globals",
"vite/client"
]
},
Expand Down
7 changes: 7 additions & 0 deletions packages/build/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from 'vitest/config'

export default defineConfig({
test: {
globals: true,
},
})

0 comments on commit 2ce1300

Please sign in to comment.