Skip to content

Commit

Permalink
feat(virtual test-support.js): remove addons sorting when generating …
Browse files Browse the repository at this point in the history
…test-support.js
  • Loading branch information
BlueCutOfficial committed Apr 4, 2024
1 parent 2be859d commit 20503b1
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/core/src/virtual-test-support.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { Package } from '@embroider/shared-internals';
import type { V2AddonPackage } from '@embroider/shared-internals/src/package';
import { readFileSync } from 'fs';
import { sortBy } from 'lodash';
import resolve from 'resolve';
import type { Engine } from './app-files';
import type { Resolver } from './module-resolver';
Expand Down Expand Up @@ -66,16 +65,7 @@ if (typeof Testem !== 'undefined' && (typeof QUnit !== 'undefined' || typeof Moc

function impliedAddonTestSupport(engine: Engine): string[] {
let result: Array<string> = [];
for (let addon of sortBy(Array.from(engine.addons.keys()), pkg => {
switch (pkg.name) {
case 'loader.js':
return 0;
case 'ember-source':
return 10;
default:
return 1000;
}
})) {
for (let addon of Array.from(engine.addons.keys())) {
let implicitScripts = addon.meta['implicit-test-scripts'];
if (implicitScripts) {
let options = { basedir: addon.root };
Expand Down

0 comments on commit 20503b1

Please sign in to comment.