diff --git a/packages/playground/ssr-vue/src/entry-server.js b/packages/playground/ssr-vue/src/entry-server.js index a5865b77fd5491..2921dbf1f4239f 100644 --- a/packages/playground/ssr-vue/src/entry-server.js +++ b/packages/playground/ssr-vue/src/entry-server.js @@ -3,7 +3,7 @@ import { renderToString } from 'vue/server-renderer' import path, { resolve } from 'path' import assert from 'assert' -// test require relative path +// test require expression path const cwd = process.env.JEST_WORKER_ID !== undefined ? resolve(process.cwd(), './packages/playground/ssr-vue') : process.cwd() const { foo } = require(resolve(cwd, './config')) assert.strictEqual(foo, 'foo')