Initial commit
This commit is contained in:
15
tests/bootstrap.js
vendored
Normal file
15
tests/bootstrap.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { assert } from '@japa/assert';
|
||||
import app from '@adonisjs/core/services/app';
|
||||
import { pluginAdonisJS } from '@japa/plugin-adonisjs';
|
||||
import testUtils from '@adonisjs/core/services/test_utils';
|
||||
export const plugins = [assert(), pluginAdonisJS(app)];
|
||||
export const runnerHooks = {
|
||||
setup: [],
|
||||
teardown: [],
|
||||
};
|
||||
export const configureSuite = (suite) => {
|
||||
if (['browser', 'functional', 'e2e'].includes(suite.name)) {
|
||||
return suite.setup(() => testUtils.httpServer().start());
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=bootstrap.js.map
|
||||
1
tests/bootstrap.js.map
Normal file
1
tests/bootstrap.js.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../tests/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,GAAG,MAAM,6BAA6B,CAAA;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,SAAS,MAAM,oCAAoC,CAAA;AAU1D,MAAM,CAAC,MAAM,OAAO,GAAsB,CAAC,MAAM,EAAE,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,CAAA;AASzE,MAAM,CAAC,MAAM,WAAW,GAAiD;IACvE,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,EAAE;CACb,CAAA;AAMD,MAAM,CAAC,MAAM,cAAc,GAA6B,CAAC,KAAK,EAAE,EAAE;IAChE,IAAI,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1D,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC,CAAA;IAC1D,CAAC;AACH,CAAC,CAAA"}
|
||||
Reference in New Issue
Block a user