mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
34 lines
1.3 KiB
JavaScript
34 lines
1.3 KiB
JavaScript
import {
|
|
waitForMeteorOutput,
|
|
} from "./helpers";
|
|
import { testMeteorRspackBundler } from './test-helpers';
|
|
|
|
describe('CoffeeScript App Bundling /', () => {
|
|
describe('Meteor+Rspack Bundler /', testMeteorRspackBundler({
|
|
appName: 'coffeescript',
|
|
port: 3132,
|
|
filePaths: {
|
|
client: 'client/main.coffee',
|
|
server: 'server/main.coffee',
|
|
test: 'tests/main.coffee'
|
|
},
|
|
customUpdates: {
|
|
devClient: (message) => `console.log "${message}" if Meteor.isDevelopment`,
|
|
devServer: (message) => `console.log "${message}" if Meteor.isDevelopment`,
|
|
prodClient: (message) => `console.log "${message}" if Meteor.isProduction`,
|
|
prodServer: (message) => `console.log "${message}" if Meteor.isProduction`,
|
|
test: (message) => `console.log "${message}"`
|
|
},
|
|
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 });
|
|
},
|
|
}
|
|
}));
|
|
});
|