test: add string for build.transpile

This commit is contained in:
Clark Du 2018-05-06 20:35:32 +01:00
parent 63520aa337
commit a888136ac4
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -15,7 +15,7 @@ describe('basic dev', () => {
build: {
stats: 'none',
transpile: [
'\\vue.test\\.js',
'vue\\.test\\.js',
/vue-test/
],
extend({ module: { rules } }, { isClient }) {
@ -36,6 +36,7 @@ describe('basic dev', () => {
expect(transpile('vue-test')).toBeUndefined()
expect(transpile('node_modules/test.js')).toBe(true)
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)
})