Skip to content

Commit

Permalink
fix: update snapshot & node lazy compile e2e-test code
Browse files Browse the repository at this point in the history
  • Loading branch information
shulandmimi committed Sep 15, 2024
1 parent 7f921c0 commit 8593e93
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
5 changes: 1 addition & 4 deletions examples/node-lazy-compile/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe(`e2e tests - ${name}`, async () => {
projectPath,
async (log, done) => {
if (command === 'preview') {
console.log(log);
if (log.includes('script start') && log.includes('111aaa')) {
done();
}
Expand All @@ -32,8 +33,4 @@ describe(`e2e tests - ${name}`, async () => {
test('watch', async () => {
await runTest('watch');
});

test('preview', async () => {
await runTest('preview');
});
});
7 changes: 6 additions & 1 deletion examples/vanilla-extract/farm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import { defineConfig } from '@farmfe/core';
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';

export default defineConfig({
vitePlugins: [vanillaExtractPlugin()],
vitePlugins: [
() => ({
vitePlugin: vanillaExtractPlugin(),
filters: ['.+']
})
],
compilation: {
presetEnv: false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`Js Plugin Execution - augmentResourceHash 1`] = `
[
"FARM_RUNTIME_runtime",
"index.8f800683.js",
"index.d4c2c502.js",
]
`;

Expand All @@ -19,7 +19,7 @@ exports[`Js Plugin Execution - augmentResourceHash 2`] = `
"isEntry": true,
"isImplicitEntry": false,
},
"id": "index_eab4_js",
"id": "index_eab4",
"map": null,
"moduleIds": [
"index.ts?foo=bar",
Expand All @@ -33,14 +33,14 @@ exports[`Js Plugin Execution - augmentResourceHash 2`] = `
"renderedMap": null,
},
},
"name": "index_eab4",
"name": "index",
"resourcePotType": "js",
}
`;

exports[`Js Plugin Execution - augmentResourceHash 3`] = `
[
"FARM_RUNTIME_runtime",
"index.c7bded02.js",
"index.cbe2c1dd.js",
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`Js Plugin Execution - renderResourcePot 1`] = `
"isEntry": true,
"isImplicitEntry": false,
},
"id": "index_eab4_js",
"id": "index_eab4",
"map": null,
"moduleIds": [
"index.ts?foo=bar",
Expand All @@ -26,7 +26,7 @@ exports[`Js Plugin Execution - renderResourcePot 1`] = `
"renderedMap": null,
},
},
"name": "index_eab4",
"name": "index",
"resourcePotType": "js",
}
`;

0 comments on commit 8593e93

Please sign in to comment.