Skip to content

Commit

Permalink
test: v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed Apr 27, 2023
1 parent 2a4f240 commit b34ada6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/fixtures/__snapshots__/main.js
Expand Up @@ -66,7 +66,7 @@
});
}
})();
// ---- dynamic import runtime functions --S--
// [vite-plugin-dynamic-import] runtime -S-
function __variableDynamicImportRuntime0__(path) {
switch (path) {
case '@/views/foo':
Expand Down Expand Up @@ -198,4 +198,4 @@ function __variableDynamicImportRuntime5__(path) {
})
}
}
// ---- dynamic import runtime functions --E--
// [vite-plugin-dynamic-import] runtime -E-
4 changes: 2 additions & 2 deletions test/serve.test.ts
Expand Up @@ -26,8 +26,8 @@ beforeAll(async () => {
describe('vite serve', async () => {
it('__snapshots__', async () => {
const mainTs = await (await fetch(`http://localhost:${PORT}/src/main.ts`)).text()
const mainJs = fs.readFileSync(path.join(path.join(root, 'dist/main.js')), 'utf8')
const mainJsSnap = fs.readFileSync(path.join(path.join(root, '__snapshots__/main.js')), 'utf8')
const mainJs = fs.readFileSync(path.join(root, 'dist/main.js'), 'utf8')
const mainJsSnap = fs.readFileSync(path.join(root, '__snapshots__/main.js'), 'utf8')

expect(mainTs).string
expect(mainJs).eq(mainJsSnap)
Expand Down

0 comments on commit b34ada6

Please sign in to comment.