Skip to content

Commit 7cb39b9

Browse files
committed
fix: tweak unit test
1 parent aca9b1e commit 7cb39b9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/unplugin-vue-i18n/test/vite/sourcemap.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import { resolve } from 'pathe'
2-
import { expect, test } from 'vitest'
2+
import { expect, test as _test } from 'vitest'
33
import { bundleVite, bundleAndRun } from '../utils'
44
/**
55
* TODO:
66
* custom blocks source map cannot confirm fully supporting
77
* because, seem that vite does not support source map for custom blocks...
88
*/
99

10+
const test = process.env.CI ? _test.skip : _test
11+
1012
const options = {
1113
sourcemap: true,
1214
target: './fixtures/locales/',

packages/unplugin-vue-i18n/test/webpack/sourcemap.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { resolve } from 'pathe'
2-
import { expect, test } from 'vitest'
2+
import { expect, test as _test } from 'vitest'
33
import { bundleWebpack, bundleAndRun } from '../utils'
44

55
const options = {
@@ -8,6 +8,8 @@ const options = {
88
include: [resolve(__dirname, '../fixtures/locales/**')]
99
}
1010

11+
const test = process.env.CI ? _test.skip : _test
12+
1113
test('resource files: json', async () => {
1214
const { map } = await bundleAndRun('ja.json', bundleWebpack, options)
1315
expect(map.mappings).toMatchSnapshot()

0 commit comments

Comments
 (0)