From def5ea75f4dec9326f6681aeff4a61dfab901cd9 Mon Sep 17 00:00:00 2001 From: owjs3901 Date: Tue, 17 Nov 2026 15:36:58 +0900 Subject: [PATCH 1/2] test(rsbuild-plugin): expect the MDX post transform in the hook order #957 recorded the hook order before #960 added an order: post transform for .mdx modules. Both landed, so main registers two source transforms and the test failed. Label the MDX transform and expect it last. Co-Authored-By: Claude Opus 5.5 --- packages/rsbuild-plugin/src/__tests__/hooks.test.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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)', ]) }) From 20468479ce9a2194dceb05b3864a5e47744eaeea Mon Sep 17 00:00:00 2001 From: owjs3901 Date: Tue, 17 Nov 2026 16:08:57 +0900 Subject: [PATCH 2/2] test(wasm): count removeFile in the documented argument positions #952 counted 45 validated argument positions; #951, merged alongside it, added removeFile.filename, so main validates 46 and the ABI gate failed. Co-Authored-By: Claude Opus 5.5 --- e2e/binding/wasm-abi/coverage.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) })