Skip to content

Commit ebd0e4b

Browse files
authored
Merge pull request #521 from aws-amplify/fix-tests
chore: restore mocked file system after test run
2 parents 0cdc527 + 5834ea1 commit ebd0e4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/amplify-codegen/tests/commands/model-introspection.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,8 @@ describe('getModelIntrospection', () => {
110110
expect(graphqlCodegen.codegen).toBeCalled();
111111
expect(fs.readdirSync(outputDirectory).length).toEqual(0);
112112
});
113+
114+
afterEach(() => {
115+
mockFs.restore();
116+
});
113117
});

0 commit comments

Comments
 (0)