Skip to content

Commit

Permalink
Fix tests by adjusting zone.js import ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Nov 6, 2023
1 parent efae996 commit fd8614d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ module.exports = {
* Custom sorting of imports, first lit stuff, then other third
* party libs, then own modules
*/
importOrder: ["^@angular/", "<THIRD_PARTY_MODULES>", "^src/", "^../", "^./"],
importOrder: [
"zone.js/testing",
"^@angular/",
"<THIRD_PARTY_MODULES>",
"^src/",
"^../",
"^./",
],

/**
* Whether to separate sorting groups (as defined above) with
Expand Down
2 changes: 1 addition & 1 deletion src/test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import "zone.js/testing";
import { getTestBed } from "@angular/core/testing";
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting,
} from "@angular/platform-browser-dynamic/testing";
import "zone.js/testing";

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
Expand Down

0 comments on commit fd8614d

Please sign in to comment.