diff --git a/packages/@vuepress/markdown/__tests__/__snapshots__/snippet.spec.js.snap b/packages/@vuepress/markdown/__tests__/__snapshots__/snippet.spec.js.snap
index 53414f776e..1514907d3b 100644
--- a/packages/@vuepress/markdown/__tests__/__snapshots__/snippet.spec.js.snap
+++ b/packages/@vuepress/markdown/__tests__/__snapshots__/snippet.spec.js.snap
@@ -10,11 +10,18 @@ exports[`snippet import snippet 1`] = `
exports[`snippet import snippet with highlight multiple lines 1`] = `
+
+
+export default function () {
+// ..
+}
`;
exports[`snippet import snippet with highlight single line 1`] = `
+
+
+export default function () {
+// ..
+}
`;
diff --git a/packages/@vuepress/markdown/__tests__/snippet.spec.js b/packages/@vuepress/markdown/__tests__/snippet.spec.js
index 4783e16f6c..bd3a23cfae 100644
--- a/packages/@vuepress/markdown/__tests__/snippet.spec.js
+++ b/packages/@vuepress/markdown/__tests__/snippet.spec.js
@@ -4,7 +4,7 @@ import snippet from '../lib/snippet.js'
import highlightLines from '../lib/highlightLines.js'
const md = Md().use(snippet)
-const mdH = Md().use(snippet).use(highlightLines)
+const mdH = Md().use(highlightLines).use(snippet)
describe('snippet', () => {
test('import snippet', () => {
diff --git a/scripts/test.js b/scripts/test.js
index 15567524c7..252730d96c 100644
--- a/scripts/test.js
+++ b/scripts/test.js
@@ -13,12 +13,11 @@ if (args.p) {
rawArgs.splice(i, 2)
}
-const jestRunner = createJestRunner(
- [
- '--config', 'scripts/jest.config.js',
- '--runInBand',
- ...(regex ? [regex] : [])
- ])
+const jestRunner = createJestRunner([
+ '--config', 'scripts/jest.config.js',
+ '--runInBand',
+ ...(regex ? [regex] : [])
+])
// ensure the basic temp files were genereatod
createApp({