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

Commit

Permalink
tests: cleanup files for test failure (#9142)
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-mitra authored Oct 25, 2023
1 parent 4d6ba78 commit 87621fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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

0 comments on commit 87621fa

Please sign in to comment.