Skip to content

Commit c87b46c

Browse files
committed
refactor(scripts): log created files
1 parent bb012b7 commit c87b46c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/new-use-case.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ test.group('{{kebabCaseName}} (use-case)', (group) => {
5151
const app = new InMemoryApp()
5252
const useCase = new {{camelCaseName}}(app)
5353
54-
group.each.teardown(() => app.memoryDrive.clear())
54+
group.each.teardown(() => app.clear())
5555
5656
test('should test use-case', async ({ expect }) => {
5757
expect(1).toEqual(1)
@@ -65,7 +65,7 @@ async function main() {
6565

6666
const folderPath = path.resolve(BASE_PATH, 'packages', 'core', 'use-cases', kebabCaseName)
6767

68-
await fs.promises.mkdir(folderPath)
68+
await fs.promises.mkdir(folderPath, { recursive: true })
6969

7070
const items = [
7171
[path.resolve(folderPath, `${kebabCaseName}.dto.ts`), dto],
@@ -80,6 +80,8 @@ async function main() {
8080
.trim()
8181

8282
await fs.promises.writeFile(filename, parsed)
83+
84+
console.info('created: ', filename)
8385
}
8486
}
8587

0 commit comments

Comments
 (0)