mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
27 lines
863 B
JavaScript
27 lines
863 B
JavaScript
import {
|
|
waitForMeteorOutput,
|
|
} from "./helpers";
|
|
import { testMeteorRspackBundler } from './test-helpers';
|
|
|
|
describe('Svelte App Bundling /', () => {
|
|
describe('Meteor+Rspack Bundler /', testMeteorRspackBundler({
|
|
appName: 'svelte',
|
|
port: 3122,
|
|
filePaths: {
|
|
client: 'client/main.js',
|
|
server: 'server/main.js',
|
|
test: 'tests/main.js'
|
|
},
|
|
customAssertions: {
|
|
afterRunRebuildClient: async ({ allConsoleLogs }) => {
|
|
// Check for HMR output as enabled by default
|
|
await waitForMeteorOutput(allConsoleLogs, /.*HMR.*Updated modules:.*/);
|
|
},
|
|
afterRunProductionRebuildClient: async ({ allConsoleLogs }) => {
|
|
// Check for HMR to not be enabled in production-like mode
|
|
await waitForMeteorOutput(allConsoleLogs, /.*HMR.*Updated modules:*/, { negate: true });
|
|
},
|
|
}
|
|
}));
|
|
});
|