diff --git a/tests/scenarios/jest-suites-test.ts b/tests/scenarios/jest-suites-test.ts index 3b50cfe9f..ce23ae2e9 100644 --- a/tests/scenarios/jest-suites-test.ts +++ b/tests/scenarios/jest-suites-test.ts @@ -1,15 +1,19 @@ import QUnit from 'qunit'; import { resolve } from 'path'; -import { PreparedApp } from 'scenario-tester'; +import { PreparedApp, Project, Scenarios } from 'scenario-tester'; const { module: Qmodule, test } = QUnit; // this is the bridge between our older Jest-based node tests and our newer // scenario-tester powered tests -Qmodule('node', function () { - test('run node tests', async function (assert) { - let app = new PreparedApp(resolve(__dirname, '..', '..')); - let result = await app.execute('yarn jest --forceExit'); - assert.equal(result.exitCode, 0, result.output); +Scenarios.fromProject(() => new Project('node-tests')) + .map('node', () => {}) + .forEachScenario(scenario => { + Qmodule(scenario.name, function () { + test('run node tests', async function (assert) { + let app = new PreparedApp(resolve(__dirname, '..', '..')); + let result = await app.execute('yarn jest --forceExit'); + assert.equal(result.exitCode, 0, result.output); + }); + }); }); -});