Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Mar 4, 2024
1 parent 4b58173 commit dba0940
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
4 changes: 3 additions & 1 deletion test-app/app/templates/application.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

<h2 id="title">Welcome to Ember</h2>

{{outlet}}
{{outlet}}

<a href="/">here</a>
5 changes: 3 additions & 2 deletions test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"stylelint": "^15.11.0",
"stylelint-config-standard": "^34.0.0",
"stylelint-prettier": "^4.1.0",
"test-support": "workspace:*",
"@universal-ember/test-support": "workspace:*",
"tracked-built-ins": "^3.3.0",
"typescript": "^5.3.3",
"webpack": "^5.89.0"
Expand All @@ -113,4 +113,5 @@
"ember": {
"edition": "octane"
}
}
}

12 changes: 12 additions & 0 deletions test-app/tests/acceptance/visit-all-links-test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { module, test } from 'qunit';
import { setupApplicationTest } from 'ember-qunit';

import { visitAllLinks } from '@universal-ember/test-support';

module('All Links', function (hooks) {
setupApplicationTest(hooks);

test('are visitable without error', async function () {
await visitAllLinks();
});
});
2 changes: 1 addition & 1 deletion test-support/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "test-support",
"name": "@universal-ember/test-support",
"version": "0.0.0",
"description": "The default blueprint for Embroider v2 addons.",
"keywords": [
Expand Down

0 comments on commit dba0940

Please sign in to comment.