1
1
mirror of https://github.com/mdx-js/mdx.git synced 2024-09-11 15:05:32 +03:00

Remove unneeded dev-dependency

This commit is contained in:
Titus Wormer 2023-10-16 12:10:52 +02:00
parent 69d87e39f7
commit 11e580d5ca
No known key found for this signature in database
GPG Key ID: E6E581152ED04E2E
3 changed files with 684 additions and 650 deletions

1318
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -24,7 +24,6 @@
],
"devDependencies": {
"@babel/core": "^7.0.0",
"@emotion/react": "^11.0.0",
"@node-loader/core": "^2.0.0",
"@types/babel__core": "^7.0.0",
"@types/dlv": "^1.0.0",

View File

@ -235,26 +235,13 @@ test('compile', async (t) => {
}
)
await t.test('should support `jsxImportSource` for `emotion`', async () => {
assert.equal(
renderToStaticMarkup(
React.createElement(
await run(
String(compileSync('<>+</>', {jsxImportSource: '@emotion/react'}))
)
)
),
'+'
)
})
await t.test(
'should *not* support `jsxClassicImportSource` w/o `pragma`',
async () => {
assert.throws(() => {
compileSync('import React from "react"\n\n.', {
jsxRuntime: 'classic',
pragmaImportSource: '@emotion/react',
pragmaImportSource: 'react',
pragma: ''
})
}, /Missing `pragma` in classic runtime with `pragmaImportSource`/)