Skip to content

Commit 12402e7

Browse files
committed
fix type checks in tests
1 parent a2fc5c5 commit 12402e7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/scenarios/router-test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let routerApp = tsAppScenarios.map('router', project => {
1818
1919
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
2020
const { maybeEmbroider } = require('@embroider/test-setup');
21-
21+
2222
module.exports = function (defaults) {
2323
let app = new EmberApp(defaults, {
2424
'ember-cli-babel': {
@@ -30,7 +30,7 @@ let routerApp = tsAppScenarios.map('router', project => {
3030
}
3131
}
3232
});
33-
33+
3434
return maybeEmbroider(app, {
3535
staticAddonTestSupportTrees: true,
3636
staticAddonTrees: true,
@@ -219,7 +219,7 @@ let routerApp = tsAppScenarios.map('router', project => {
219219
);
220220
});
221221
});
222-
222+
223223
`,
224224
},
225225
},
@@ -234,7 +234,7 @@ routerApp.forEachScenario(scenario => {
234234
});
235235

236236
test(`type checks`, async function (assert) {
237-
let result = await app.execute('pnpm tsc');
237+
let result = await app.execute('pnpm tsc -b');
238238
assert.equal(result.exitCode, 0, result.output);
239239
});
240240
});

tests/scenarios/typescript-app-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ typescriptApp.forEachScenario(scenario => {
8686
});
8787

8888
test(`check types`, async function (assert) {
89-
let result = await app.execute(`pnpm tsc`);
89+
let result = await app.execute(`pnpm tsc -b`);
9090
assert.equal(result.exitCode, 0, result.output);
9191
});
9292
});

0 commit comments

Comments
 (0)