File tree 5 files changed +6
-8
lines changed
5 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,3 @@ node_modules/
5
5
.DS_Store
6
6
react-markdown.min.js
7
7
yarn.lock
8
- ! /lib /complex-types.d.ts
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 121
121
"format" : " remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix" ,
122
122
"prepack" : " npm run build && npm run format" ,
123
123
"test" : " npm run build && npm run format && npm run test-coverage" ,
124
- "test-api" : " node --conditions development --experimental-loader=./test/loader .js --no-warnings test/ test.jsx" ,
125
- "test-coverage" : " c8 --100 --reporter lcov npm run test-api"
124
+ "test-api" : " node --conditions development --experimental-loader=./script/load-jsx .js --no-warnings test.jsx" ,
125
+ "test-coverage" : " c8 --100 --exclude script/ -- reporter lcov npm run test-api"
126
126
},
127
127
"prettier" : {
128
128
"bracketSpacing" : false ,
182
182
},
183
183
{
184
184
"files" : [
185
- " test/ **/*.jsx"
185
+ " **/*.jsx"
186
186
],
187
187
"rules" : {
188
188
"no-unused-vars" : " off"
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
/* @jsxRuntime automatic @jsxImportSource react */
2
2
/**
3
3
* @typedef {import('hast').Root } Root
4
- * @typedef {import('.. /index.js').ExtraProps } ExtraProps
4
+ * @typedef {import('./index.js').ExtraProps } ExtraProps
5
5
*/
6
6
7
7
import assert from 'node:assert/strict'
@@ -11,11 +11,11 @@ import rehypeRaw from 'rehype-raw'
11
11
import remarkGfm from 'remark-gfm'
12
12
import remarkToc from 'remark-toc'
13
13
import { visit } from 'unist-util-visit'
14
- import Markdown from '.. /index.js'
14
+ import Markdown from './index.js'
15
15
16
16
test ( 'react-markdown' , async function ( t ) {
17
17
await t . test ( 'should expose the public api' , async function ( ) {
18
- assert . deepEqual ( Object . keys ( await import ( '.. /index.js' ) ) . sort ( ) , [
18
+ assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
19
19
'default' ,
20
20
'uriTransformer'
21
21
] )
You can’t perform that action at this time.
0 commit comments