mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-01 02:42:39 +08:00
* Run smoke tests with Jest * Get a unique port for smoke test * Upgrade verdaccio across the board * Drop unneeded step * Try latest instead * Boot registry in home directory * Correct config path * Add mutex * Test webpack message formatting * Strip color * Add browserslist to default * Disable another broken feature
18 lines
505 B
JavaScript
18 lines
505 B
JavaScript
const {
|
|
bootstrap,
|
|
isSuccessfulDevelopment,
|
|
isSuccessfulProduction,
|
|
} = require('../../utils');
|
|
beforeEach(async () => {
|
|
await bootstrap({ directory: global.testDirectory, template: __dirname });
|
|
});
|
|
|
|
describe('builds-with-multiple-runtimes', () => {
|
|
it('builds in development', async () => {
|
|
await isSuccessfulDevelopment({ directory: global.testDirectory });
|
|
});
|
|
it('builds in production', async () => {
|
|
await isSuccessfulProduction({ directory: global.testDirectory });
|
|
});
|
|
});
|