mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-19 05:03:23 +08:00
Fix tests x2
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const testSetup = require('../__shared__/test-setup');
|
||||
|
||||
test('builds in development', async () => {
|
||||
const { fulfilled, ...rest } = await testSetup.scripts.start({ smoke: true });
|
||||
const { fulfilled } = await testSetup.scripts.start({ smoke: true });
|
||||
expect(fulfilled).toBe(true);
|
||||
});
|
||||
test('builds in production', async () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import App from './App';
|
||||
|
||||
it('reads a typescript file with no syntax error', () => {
|
||||
const app = new App();
|
||||
const app = new App({});
|
||||
expect(App.foo.bar).toBe(true);
|
||||
expect(App.foo.baz!.n).toBe(123);
|
||||
expect(app.n).toBe(123);
|
||||
|
||||
Reference in New Issue
Block a user