Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e/binding/wasm-abi/coverage.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
10 changes: 9 additions & 1 deletion packages/rsbuild-plugin/src/__tests__/hooks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
},
}
Expand Down Expand Up @@ -197,6 +204,7 @@ describe('hook registration', () => {
'modifyRspackConfig',
'modifyRsbuildConfig',
'transform(source)',
'transform(mdx)',
])
})

Expand Down