Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyinws committed Dec 2, 2023
1 parent c21c34e commit dc73b31
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"nodemon": "^3.0.1",
"pathe": "^1.1.1",
"rimraf": "^5.0.5",
"rollup": "^4.6.1",
"tsup": "^8.0.1",
Expand Down
14 changes: 10 additions & 4 deletions pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import path from 'node:path'
import { join } from 'pathe'
import { describe, expect, it, vi } from 'vitest'
import { webpackTransform } from '../src/core/transform/webpack'
import { webpackJS, webpackVue, webpackVueScriptSetup } from './fixtures'

vi.mock('node:process', () => {
return {
cwd: vi.fn(() => path.join('/', 'mock', 'path')),
cwd: vi.fn(() => join('/', 'mock', 'path')),
}
})
describe('webpack vue transform', () => {
Expand Down
4 changes: 2 additions & 2 deletions test/options.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import path from 'node:path'
import { join } from 'pathe'
import { describe, expect, it, vi } from 'vitest'
import { webpackTransform } from '../src/core/transform/webpack'
import { optionWithDisableLaunchEditor, optionWithPrefix } from './fixtures/option'

vi.mock('node:process', () => {
return {
cwd: vi.fn(() => path.join('/', 'mock', 'path')),
cwd: vi.fn(() => join('/', 'mock', 'path')),
}
})

Expand Down

0 comments on commit dc73b31

Please sign in to comment.