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:
parent
69d87e39f7
commit
11e580d5ca
1318
package-lock.json
generated
1318
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
@ -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`/)
|
||||
|
Loading…
Reference in New Issue
Block a user