DEV: Don't forward `test-i18n.js` requests (#17422)

This fixes i18n related tests in dev env
This commit is contained in:
Jarek Radosz 2022-07-11 13:14:44 +02:00 committed by GitHub
parent 2414a175cf
commit 6487179dec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -392,9 +392,12 @@ to serve API requests. For example:
shouldForwardRequest(request) {
if (
["/tests/index.html", "/ember-cli-live-reload.js", "/testem.js"].includes(
request.path
)
[
"/tests/index.html",
"/ember-cli-live-reload.js",
"/testem.js",
"/assets/test-i18n.js",
].includes(request.path)
) {
return false;
}