react-native-community / releases

React Native releases
https://github.com/facebook/react-native/
1.5k stars 405 forks source link

Fix getFirstCommitAfterForkingFromMain-test #248

Closed lunaleaps closed 3 years ago

lunaleaps commented 3 years ago

I think a rename from master -> main forgot this

lunaleaps commented 3 years ago

Tried running yarn test but failing with this -- is there anything I'm missing?

 FAIL  scripts/__tests__/changelog-generator.test.ts
  ● Test suite failed to run

    Cannot find module '/Users/luna/releases/node_modules/@babel/compat-data/data/corejs3-shipped-proposals'

      at createEsmNotFoundErr (node:internal/modules/cjs/loader:960:15)
      at finalizeEsmResolution (node:internal/modules/cjs/loader:953:15)
      at resolveExports (node:internal/modules/cjs/loader:482:14)
      at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
      at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
      at Function.Module._load (node:internal/modules/cjs/loader:778:27)
      at Module.require (node:internal/modules/cjs/loader:1005:19)
      at require (node:internal/modules/cjs/helpers:94:18)
      at Object.<anonymous> (node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js:10:55)
      at Module._compile (node:internal/modules/cjs/loader:1101:14)
tido64 commented 3 years ago

Oh, interesting… If you open up node_modules/@babel/compat-data/package.json and modify line 15:

-    "./corejs3-shipped-proposals": "./data/corejs3-shipped-proposals",
+    "./corejs3-shipped-proposals": "./data/corejs3-shipped-proposals.json",

The tests should run. We probably just need to bump to the latest version to fix this.