Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

cleanup file-browser files for test failure #9142

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/projects/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test-*
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ describe('file browser service', () => {
app = createFeathersKoaApp()
await app.setup()
})
after(async () => {
const directories = (await app.service(fileBrowserPath).find({ query: { directory: '/' } })).data.map(
(directory) => directory.key
)

await Promise.all(directories.map((directory) => app.service(fileBrowserPath).remove(directory)))
})
after(() => {
return destroyEngine()
})
Expand Down Expand Up @@ -230,7 +237,6 @@ describe('file browser service', () => {
const foundIncrementedFile = directoryContents.data.filter(
(file) => file.name.match(testFileName) && file.name.match('(1)')
)

assert.equal(foundIncrementedFile.length, 1)
})

Expand Down
Loading