Skip to content

Commit 6064ad2

Browse files
committed
test(exportfunctions): after updating versions this test failed - hotfix
An updated module meant that a callback function could be deleted to make test suite pass, from the afterAll block.
1 parent 8d72e59 commit 6064ad2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

__tests__/exportFunctions.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('exportFunctions() function exporter test suite', () => {
2020
'folder/new.func.ts',
2121
'folder/not-a-func.ts',
2222
];
23-
const { name: tempFuncDir, removeCallback } = tmp.dirSync();
23+
const { name: tempFuncDir } = tmp.dirSync();
2424
const randOutput = Math.floor(Math.random() * 10);
2525
const filePathToPropertyPath = (moduleFilePath: string) => {
2626
const funcName = bff.funcNameFromRelPathDefault(moduleFilePath);
@@ -40,7 +40,6 @@ describe('exportFunctions() function exporter test suite', () => {
4040
afterAll(() => {
4141
rimfar.sync(tempFuncDir);
4242
tmp.setGracefulCleanup();
43-
removeCallback();
4443
});
4544

4645
const exportTestFactory = (configObj?: any) =>

0 commit comments

Comments
 (0)