@@ -57,6 +57,7 @@ export const BABEL_VERSIONS_UNDER_TEST = ([
5757 // * [babel@version , ...otherPackages]
5858 [ `@babel/core@${ babelCoreMinimumVersion . version } ` ] , // ? Current minimum version
5959 [ '@babel/core@latest' ] , // ? Latest version
60+ // ! Canary/next version should always be last (so Jest can skip it for now)
6061 [ '@babel/core@next' ] , // ? Next version
6162] ) ;
6263
@@ -74,14 +75,15 @@ export const NODE_VERSIONS_UNDER_TEST = packageEngines.node
7475
7576export const FRAMEWORKS_UNDER_TEST : FrameworksUnderTest = [
7677 {
77- frameworkPkg : 'jest@>=30 || >=30.0.0-alpha.2 ' ,
78+ frameworkPkg : 'jest@latest ' ,
7879 frameworkArgs : [ 'jest' ] ,
7980 tests : [
8081 { source : assets . invocation , expectations : expectSuccessAndOutput } ,
8182 { source : assets . invocationOnly , expectations : expectSuccess } ,
8283 { source : assets . invocationSkip , expectations : expectSuccess } ,
8384 { source : assets . invocationSnapshot , expectations : expectSuccess }
84- ]
85+ ] ,
86+ skipLastBabelVersionUnderTest : true
8587 } ,
8688 {
8789 frameworkPkg : 'vitest@latest' ,
@@ -168,6 +170,14 @@ export type FrameworksUnderTest = ReadonlyDeep<
168170 frameworkPkg : string ;
169171 frameworkArgs : string [ ] ;
170172 otherFrameworkPkgs ?: string [ ] ;
173+ /**
174+ * TODO: Try to fix this next time you see this!
175+ * Only applies to integration-smoke.test.ts. Useful because babel@8 and
176+ * babel-jest are incompatible for a couple reasons, including breaking API
177+ * changes from babel@8 as well as jest not handling cjs-importing-esm
178+ * properly (a fix is monkey-patched in via a @-xun/jest helper method).
179+ */
180+ skipLastBabelVersionUnderTest ?: boolean ;
171181 tests : {
172182 source : Record <
173183 ( typeof IMPORT_SPECIFIERS_UNDER_TEST ) [ number ] ,
0 commit comments