Skip to content

Commit 66aeeee

Browse files
committed
chore(unplugin-vue-i18n): webpack sourcemap testing on CI only
1 parent bdfed96 commit 66aeeee

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/unplugin-vue-i18n/test/webpack/bundle-import.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { createMessageContext } from '@intlify/core-base'
12
import { resolve } from 'pathe'
23
import { expect, test } from 'vitest'
3-
import { bundleWebpack, bundleAndRun } from '../utils'
4-
import { createMessageContext } from '@intlify/core-base'
4+
import { bundleAndRun, bundleWebpack } from '../utils'
55
;[
66
{
77
testcase: 'import',

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { resolve } from 'pathe'
22
import { expect, test } from 'vitest'
3-
import { bundleWebpack, bundleAndRun } from '../utils'
3+
import { bundleAndRun, bundleWebpack } from '../utils'
44

55
const options = {
66
sourcemap: true,
@@ -60,7 +60,6 @@ test('resource files: yaml', async () => {
6060
}
6161
}
6262
].forEach(item => {
63-
// !process.env.CI
64-
test(item.subject, item.test)
65-
// : test.skip(item.subject, item.test)
63+
const _test = process.env.CI ? test : test.skip
64+
_test(item.subject, item.test)
6665
})

0 commit comments

Comments
 (0)