-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
Similar to smoke tests: #1837
Basically we should setup a test such that Babel itself would be able to compile itself with the latest built version in master (currently 7.0). Then we can find basic issues without having to publish first. Basic idea would be to just write so some temporary folders and then link something?
It would need to be able to revert back if something fails since otherwise it wouldn't even be able to compile anymore.
Context: Babel uses Babel to compile itself (we write using ES6+ and compile to ES5 for npm). However do that, we download the last version of Babel on npm. This also means that we have to publish to npm before testing that last published version on Babel itself. Ideally we would have a setup where before we publish (or on every PR if we wanted), we could switch out compiling Babel with the version of itself on master. Maybe it means doing an npm pack/link etc, but we should also check that it works with the monorepo/yarn/lerna setup that we have?