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:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user