Skip to content

Commit

Permalink
Swap order of test config creation in Config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashoneyman committed Oct 23, 2023
1 parent 704baee commit 5917a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Spago/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function addPackagesToConfigImpl(doc, isTest, newPkgs) {

const deps = (() => {
if (isTest) {
const test = getOrElse(pkg, "test", doc.createNode({ dependencies: [], main: "Test.Main" }));
const test = getOrElse(pkg, "test", doc.createNode({ main: "Test.Main", dependencies: [] }));
return getOrElse(test, "dependencies", doc.createNode([]));
} else {
return getOrElse(pkg, "dependencies", doc.createNode([]))
Expand Down

0 comments on commit 5917a75

Please sign in to comment.