diff --git a/playground/__tests__/cli.test.js b/playground/__tests__/cli.test.js index b5b3b93..3379fd6 100644 --- a/playground/__tests__/cli.test.js +++ b/playground/__tests__/cli.test.js @@ -6,6 +6,13 @@ const exec = util.promisify(require('child_process').exec); jest.setTimeout(20000); describe('Test the config-sync CLI', () => { + + afterAll(async () => { + // Remove the generated files and the DB. + await exec('rm -rf config/sync'); + await exec('rm -rf .tmp'); + }); + test('Export', async () => { const { stdout } = await exec('yarn cs export -y'); expect(stdout).toContain('Finished export');