1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

[EC-648] Fix esm features in node testing environment (#4223)

* Add AST transformer to remove import.meta in tests
This commit is contained in:
Thomas Rittson
2023-01-12 13:23:14 +10:00
committed by GitHub
parent 4e0c26ddb8
commit 23ec317767
5 changed files with 42 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { InfiniteScrollModule } from "ngx-infinite-scroll";
import { AppComponent } from "./app.component";
import { CoreModule } from "./core/core.module";
import { CoreModule } from "./core";
import { OssRoutingModule } from "./oss-routing.module";
import { OssModule } from "./oss.module";
import { WildcardRoutingModule } from "./wildcard-routing.module";

View File

@@ -1,7 +1,4 @@
// Do not export this here or it will import MultithreadEncryptService (via JslibServicesModule) into test code.
// MultithreadEncryptService contains ES2020 features (import.meta) which are not supported in Node and Jest.
// Revisit this when Node & Jest get stable support for ESM.
// export * from "./core.module";
export * from "./core.module";
export * from "./event.service";
export * from "./policy-list.service";
export * from "./router.service";