diff --git a/packages/react-native-codegen/package.json b/packages/react-native-codegen/package.json index caddea91693e01..99bb30580ae3bb 100644 --- a/packages/react-native-codegen/package.json +++ b/packages/react-native-codegen/package.json @@ -10,7 +10,7 @@ }, "scripts": { "build": "yarn clean && node scripts/build.js --verbose", - "clean": "rm -rf lib", + "clean": "rimraf lib", "prepare": "yarn run build" }, "license": "MIT", @@ -38,6 +38,7 @@ "invariant": "^2.2.4", "micromatch": "^4.0.4", "mkdirp": "^0.5.1", - "prettier": "^2.4.1" + "prettier": "^2.4.1", + "rimraf": "^3.0.2" } } diff --git a/packages/react-native-codegen/src/generators/__tests__/RNCodegen-test.js b/packages/react-native-codegen/src/generators/__tests__/RNCodegen-test.js index 864a0b06491967..44a70349ab2ec9 100644 --- a/packages/react-native-codegen/src/generators/__tests__/RNCodegen-test.js +++ b/packages/react-native-codegen/src/generators/__tests__/RNCodegen-test.js @@ -19,6 +19,7 @@ describe('RNCodegen.generate', () => { beforeEach(() => { jest.resetModules(); }); + it('when type `all`, with default paths', () => { jest.mock('fs', () => ({ existsSync: location => {