Skip to content

Commit

Permalink
test: update test code
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuangzhang committed Nov 1, 2021
1 parent 15e78f5 commit e654ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playground/ssr-vue/src/entry-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit e654ddd

Please sign in to comment.