diff --git a/packages/@vue/cli-plugin-unit-mocha/__tests__/mochaPlugin.spec.js b/packages/@vue/cli-plugin-unit-mocha/__tests__/mochaPlugin.spec.js index f17b7a358c..3028406860 100644 --- a/packages/@vue/cli-plugin-unit-mocha/__tests__/mochaPlugin.spec.js +++ b/packages/@vue/cli-plugin-unit-mocha/__tests__/mochaPlugin.spec.js @@ -11,3 +11,34 @@ test('should work', async () => { }) await project.run(`vue-cli-service test:unit`) }) + +test('should work with dart-sass on *nix system', async () => { + const project = await createOutside('unit-mocha-dart-sass', { + cssPreprocessor: 'dart-sass', + plugins: { + '@vue/cli-plugin-babel': {}, + '@vue/cli-plugin-unit-mocha': {} + } + }) + + const file = await project.read('src/components/HelloWorld.vue') + project.write('src/components/HelloWorld.vue', file.replace(`