diff --git a/e2e/binding/wasm-abi/coverage.test.mjs b/e2e/binding/wasm-abi/coverage.test.mjs index 54d0a206c..2f715c781 100644 --- a/e2e/binding/wasm-abi/coverage.test.mjs +++ b/e2e/binding/wasm-abi/coverage.test.mjs @@ -157,6 +157,6 @@ test('exempts only the documented unvalidated parameters', () => { test('the validation oracle covers every documented argument position', () => { const positions = new Set(cases.map((item) => `${item.fn}.${item.parameter}`)) - assert.equal(positions.size, 45) + assert.equal(positions.size, 46) for (const key of Object.keys(UNVALIDATED)) assert.ok(!positions.has(key)) }) diff --git a/packages/rsbuild-plugin/src/__tests__/hooks.test.ts b/packages/rsbuild-plugin/src/__tests__/hooks.test.ts index 30049ed18..13a099c99 100644 --- a/packages/rsbuild-plugin/src/__tests__/hooks.test.ts +++ b/packages/rsbuild-plugin/src/__tests__/hooks.test.ts @@ -80,7 +80,14 @@ function fakeApi(root: string) { }, transform: ({ test }: { test: unknown }, handler: Transform) => { const css = typeof test === 'string' - order.push(css ? 'transform(cssDir)' : 'transform(source)') + const mdx = test instanceof RegExp && test.test('page.mdx') + order.push( + css + ? 'transform(cssDir)' + : mdx + ? 'transform(mdx)' + : 'transform(source)', + ) transforms.push({ css, handler }) }, } @@ -197,6 +204,7 @@ describe('hook registration', () => { 'modifyRspackConfig', 'modifyRsbuildConfig', 'transform(source)', + 'transform(mdx)', ]) })