Skip to content

Commit c922cc5

Browse files
vikaspotluri123acburdine
authored andcommitted
chore(test): switch creation order of fixture links and files (#549)
1 parent 8a96fa1 commit c922cc5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/utils/env.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@ module.exports = function setupEnv(typeOrDefinition, dir) {
5252
});
5353
}
5454

55-
if (setup.links) {
56-
setup.links.forEach((link) => {
57-
fs.ensureSymlinkSync(path.join(dir, link[0]), path.join(dir, link[1]));
58-
});
59-
}
60-
6155
if (setup.files) {
6256
setup.files.forEach((file) => {
6357
fs[(file.json ? 'writeJsonSync' : 'writeFileSync')](path.join(dir, file.path), file.content);
6458
});
6559
}
6660

61+
if (setup.links) {
62+
setup.links.forEach((link) => {
63+
fs.ensureSymlinkSync(path.join(dir, link[0]), path.join(dir, link[1]));
64+
});
65+
}
66+
6767
return {
6868
dir: dir,
6969
cleanup: () => {

0 commit comments

Comments
 (0)