diff --git a/eslint.config.mjs b/eslint.config.mjs index e3169bd..1e37c80 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -8,7 +8,11 @@ export default [ languageOptions: { sourceType: 'commonjs' }, }, { - files: ['files/app/**/*.js', 'files-override/app/**/*.js'], + files: [ + 'files/app/**/*.js', + 'files-override/app/**/*.js', + 'files-override/tests/**/*.js', + ], languageOptions: { sourceType: 'module', globals: { diff --git a/files-override/tests/index.html b/files-override/tests/index.html index abfaade..860a56c 100644 --- a/files-override/tests/index.html +++ b/files-override/tests/index.html @@ -28,8 +28,14 @@ - + - {{content-for "body-footer"}} {{content-for "test-body-footer"}} + + + {{content-for "body-footer"}} diff --git a/files-override/tests/test-helper.js b/files-override/tests/test-helper.js new file mode 100644 index 0000000..7f12431 --- /dev/null +++ b/files-override/tests/test-helper.js @@ -0,0 +1,14 @@ +import Application from '<%= name %>/app'; +import config from '<%= name %>/config/environment'; +import * as QUnit from 'qunit'; +import { setApplication } from '@ember/test-helpers'; +import { setup } from 'qunit-dom'; +import { start as qunitStart } from 'ember-qunit'; + +export function start() { + setApplication(Application.create(config.APP)); + + setup(QUnit.assert); + + qunitStart(); +}