File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,20 @@ import db from '../src/db/db'
1111
1212//Before all promosie fix for async/await Jest
1313//https://github.com/facebook/jest/issues/1760
14- beforeAll ( ( ) => {
15- global . Promise = require . requireActual ( 'promise' ) ;
16- } ) ;
14+ // beforeAll(() => {
15+ // global.Promise = require.requireActual('promise');
16+ // });
1717
1818//After all the tests are done we're going to close our server
1919//and rollback our database.
20- afterAll ( async ( ) => {
21- await db . migrate . rollback ( )
22-
23- //This closes the app but it doesn't stop the tests in
24- //Jest when done - that's why we have to --forceExit
25- //when running Jest for now.
26- return server . close ( )
27- } ) ;
20+ // afterAll(async () => {
21+ // await db.migrate.rollback()
22+
23+ // //This closes the app but it doesn't stop the tests in
24+ // //Jest when done - that's why we have to --forceExit
25+ // //when running Jest for now.
26+ // return server.close()
27+ // });
2828
2929describe ( 'general actions' , ( ) => {
3030 it ( 'returns homepage' , async ( ) => {
You can’t perform that action at this time.
0 commit comments