diff --git a/packages/compat/src/compat-app-builder.ts b/packages/compat/src/compat-app-builder.ts
index 779babc1a..21a397477 100644
--- a/packages/compat/src/compat-app-builder.ts
+++ b/packages/compat/src/compat-app-builder.ts
@@ -177,7 +177,6 @@ export class CompatAppBuilder {
return {
javascript: this.compatApp.findAppScript(scripts, entrypoint),
implicitScripts: this.compatApp.findVendorScript(scripts, entrypoint),
- testJavascript: this.compatApp.findTestScript(scripts),
};
},
};
@@ -367,13 +366,6 @@ export class CompatAppBuilder {
html.insertScriptTag(html.implicitScripts, script, { tag: 'fastboot-script' });
}
}
-
- if (!asset.fileAsset.includeTests) {
- return;
- }
-
- // Test-related assets happen below this point
- html.insertScriptTag(html.javascript, '@embroider/core/test-entrypoint', { type: 'module' });
}
// recurse to find all active addons that don't cross an engine boundary.
diff --git a/packages/compat/src/compat-app.ts b/packages/compat/src/compat-app.ts
index c2cc51499..7d01f3c8a 100644
--- a/packages/compat/src/compat-app.ts
+++ b/packages/compat/src/compat-app.ts
@@ -750,12 +750,6 @@ export default class CompatApp {
);
}
- findTestScript(scripts: HTMLScriptElement[]): HTMLScriptElement | undefined {
- return scripts.find(
- script => this.withoutRootURL(script.src) === this.legacyEmberAppInstance.options.outputPaths.tests.js
- );
- }
-
readonly macrosConfig: MacrosConfig;
constructor(readonly legacyEmberAppInstance: EmberAppInstance, _options?: Options) {
diff --git a/packages/core/src/ember-html.ts b/packages/core/src/ember-html.ts
index 0ec2e4a99..2670fe392 100644
--- a/packages/core/src/ember-html.ts
+++ b/packages/core/src/ember-html.ts
@@ -77,20 +77,16 @@ export class PreparedEmberHTML {
dom: JSDOM;
javascript: Placeholder;
implicitScripts: Placeholder;
- testJavascript: Placeholder;
constructor(private asset: EmberAsset) {
this.dom = new JSDOM(readFileSync(asset.sourcePath, 'utf8'));
let html = asset.prepare(this.dom);
this.javascript = Placeholder.find(html.javascript);
this.implicitScripts = Placeholder.find(html.implicitScripts);
- this.testJavascript = html.testJavascript
- ? Placeholder.replacing(html.testJavascript)
- : Placeholder.immediatelyAfter(this.javascript.end);
}
private placeholders(): Placeholder[] {
- return [this.javascript, this.implicitScripts, this.testJavascript];
+ return [this.javascript, this.implicitScripts];
}
clear() {
diff --git a/test-packages/sample-transforms/tests/index.html b/test-packages/sample-transforms/tests/index.html
index 90c4145d7..422eec652 100644
--- a/test-packages/sample-transforms/tests/index.html
+++ b/test-packages/sample-transforms/tests/index.html
@@ -32,7 +32,7 @@
-
+
{{content-for "body-footer"}}
{{content-for "test-body-footer"}}
diff --git a/tests/addon-template/tests/index.html b/tests/addon-template/tests/index.html
index e89e8b419..de37e0d93 100644
--- a/tests/addon-template/tests/index.html
+++ b/tests/addon-template/tests/index.html
@@ -31,7 +31,7 @@
-
+
{{content-for "body-footer"}}
{{content-for "test-body-footer"}}
diff --git a/tests/app-template/tests/index.html b/tests/app-template/tests/index.html
index 5c94ceb16..c95767ea7 100644
--- a/tests/app-template/tests/index.html
+++ b/tests/app-template/tests/index.html
@@ -28,7 +28,7 @@
-
+
{{content-for "body-footer"}} {{content-for "test-body-footer"}}