Skip to content

Commit

Permalink
Revert "bugfix: Created the barrel file for test-support"
Browse files Browse the repository at this point in the history
This reverts commit 01481ab.
  • Loading branch information
ijlee2 committed Sep 5, 2024
1 parent 01481ab commit b4b1c7d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions src/steps/move-addon-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,7 @@ function moveAddonFolder(options: Options): void {
function moveAddonTestSupportFolder(options: Options): void {
const { locations, projectRoot } = options;

let filePaths = findFiles('addon-test-support/index.{js,ts}', {
projectRoot,
});

if (filePaths.length === 1) {
const oldPath = filePaths[0]!;
const newPath = `${locations.addon}/src/test-support${oldPath.endsWith('.ts') ? '.ts' : 'js'}`;

moveFiles(new Map([[oldPath, newPath]]), options);
}

filePaths = findFiles('addon-test-support/**/*', {
ignoreList: ['addon-test-support/index.{js,ts}'],
const filePaths = findFiles('addon-test-support/**/*', {
projectRoot,
});

Expand Down
2 changes: 1 addition & 1 deletion tests/steps/move-addon-files/test-support.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ test('steps | move-addon-files > test-support', function () {
components: {
'container-query.ts': '',
},
'index.ts': `export * from './components/container-query';\n`,
},
'test-support.ts': `export * from './components/container-query';\n`,
},
},
};
Expand Down

0 comments on commit b4b1c7d

Please sign in to comment.