mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
test: add string for build.transpile
This commit is contained in:
parent
63520aa337
commit
a888136ac4
@ -15,7 +15,7 @@ describe('basic dev', () => {
|
|||||||
build: {
|
build: {
|
||||||
stats: 'none',
|
stats: 'none',
|
||||||
transpile: [
|
transpile: [
|
||||||
'\\vue.test\\.js',
|
'vue\\.test\\.js',
|
||||||
/vue-test/
|
/vue-test/
|
||||||
],
|
],
|
||||||
extend({ module: { rules } }, { isClient }) {
|
extend({ module: { rules } }, { isClient }) {
|
||||||
@ -36,6 +36,7 @@ describe('basic dev', () => {
|
|||||||
expect(transpile('vue-test')).toBeUndefined()
|
expect(transpile('vue-test')).toBeUndefined()
|
||||||
expect(transpile('node_modules/test.js')).toBe(true)
|
expect(transpile('node_modules/test.js')).toBe(true)
|
||||||
expect(transpile('node_modules/vue-test')).toBe(false)
|
expect(transpile('node_modules/vue-test')).toBe(false)
|
||||||
|
expect(transpile('node_modules/vue.test.js')).toBe(false)
|
||||||
expect(transpile('node_modules/test.vue.js')).toBe(false)
|
expect(transpile('node_modules/test.vue.js')).toBe(false)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user