Skip to content

Commit

Permalink
fix type checks in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Oct 22, 2024
1 parent a2fc5c5 commit 12402e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/scenarios/router-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let routerApp = tsAppScenarios.map('router', project => {
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const { maybeEmbroider } = require('@embroider/test-setup');
module.exports = function (defaults) {
let app = new EmberApp(defaults, {
'ember-cli-babel': {
Expand All @@ -30,7 +30,7 @@ let routerApp = tsAppScenarios.map('router', project => {
}
}
});
return maybeEmbroider(app, {
staticAddonTestSupportTrees: true,
staticAddonTrees: true,
Expand Down Expand Up @@ -219,7 +219,7 @@ let routerApp = tsAppScenarios.map('router', project => {
);
});
});
`,
},
},
Expand All @@ -234,7 +234,7 @@ routerApp.forEachScenario(scenario => {
});

test(`type checks`, async function (assert) {
let result = await app.execute('pnpm tsc');
let result = await app.execute('pnpm tsc -b');
assert.equal(result.exitCode, 0, result.output);
});
});
Expand Down
2 changes: 1 addition & 1 deletion tests/scenarios/typescript-app-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ typescriptApp.forEachScenario(scenario => {
});

test(`check types`, async function (assert) {
let result = await app.execute(`pnpm tsc`);
let result = await app.execute(`pnpm tsc -b`);
assert.equal(result.exitCode, 0, result.output);
});
});
Expand Down

0 comments on commit 12402e7

Please sign in to comment.