|
97 | 97 | "@babel/core": "^7.0.0",
|
98 | 98 | "@babel/preset-env": "^7.0.0",
|
99 | 99 | "@babel/preset-react": "^7.0.0",
|
100 |
| - "@matejmazur/react-katex": "^3.0.0", |
101 |
| - "@testing-library/react": "^12.0.0", |
102 |
| - "@types/jest": "^26.0.0", |
103 | 100 | "@types/react": "^17.0.0",
|
104 | 101 | "@types/react-dom": "^17.0.0",
|
105 | 102 | "@types/react-is": "^17.0.0",
|
106 |
| - "@types/react-test-renderer": "^17.0.0", |
107 | 103 | "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
| 104 | + "c8": "^7.8.0", |
108 | 105 | "esbuild": "^0.12.0",
|
| 106 | + "esbuild-register": "^2.6.0", |
109 | 107 | "eslint-config-xo-react": "^0.25.0",
|
110 | 108 | "eslint-plugin-es": "^4.0.0",
|
111 | 109 | "eslint-plugin-react": "^7.0.0",
|
112 | 110 | "eslint-plugin-react-hooks": "^4.0.0",
|
113 | 111 | "eslint-plugin-security": "^1.0.0",
|
114 |
| - "jest": "^27.0.0", |
115 | 112 | "katex": "^0.13.0",
|
116 | 113 | "npm-run-all": "^4.0.0",
|
117 | 114 | "prettier": "^2.0.0",
|
118 | 115 | "react": "^17.0.0",
|
119 | 116 | "react-dom": "^17.0.0",
|
120 |
| - "react-test-renderer": "^17.0.0", |
121 | 117 | "rehype-raw": "^5.0.0",
|
122 | 118 | "remark-cli": "^9.0.0",
|
123 | 119 | "remark-gfm": "^1.0.0",
|
124 |
| - "remark-math": "^4.0.0", |
125 | 120 | "remark-preset-wooorm": "^8.0.0",
|
126 | 121 | "remark-toc": "^7.0.0",
|
127 | 122 | "rimraf": "^3.0.0",
|
128 | 123 | "type-coverage": "^2.0.0",
|
129 | 124 | "typescript": "^4.0.0",
|
| 125 | + "uvu": "^0.5.1", |
130 | 126 | "xo": "^0.38.0"
|
131 | 127 | },
|
132 | 128 | "scripts": {
|
|
135 | 131 | "build:umd": "esbuild src/react-markdown.js --bundle --minify --target=es2015 --outfile=react-markdown.min.js --global-name=ReactMarkdown --banner:js=\"(function (g, f) {typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = f() : typeof define === 'function' && define.amd ? define([], f) : (g = typeof globalThis !== 'undefined' ? globalThis : g || self, g.ReactMarkdown = f()); }(this, (function () { 'use strict';\" --footer:js=\"return ReactMarkdown;})));\"",
|
136 | 132 | "build": "run-s build:*",
|
137 | 133 | "format": "remark . -qfo --ignore-pattern test/ && prettier . -w --loglevel warn && xo --fix",
|
138 |
| - "test": "run-s build format test:*", |
139 |
| - "test:unit": "jest --coverage" |
| 134 | + "test": "run-s build format test:coverage", |
| 135 | + "test:unit": "uvu -r esbuild-register test", |
| 136 | + "test:coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test:unit" |
140 | 137 | },
|
141 | 138 | "browserslist": "> 0.25%, not dead",
|
142 | 139 | "remarkConfig": {
|
|
212 | 209 | }
|
213 | 210 | },
|
214 | 211 | {
|
215 |
| - "envs": [ |
216 |
| - "jest" |
217 |
| - ], |
218 | 212 | "files": [
|
219 |
| - "test/**/*.js" |
| 213 | + "test/**/*.jsx" |
220 | 214 | ],
|
221 | 215 | "rules": {
|
222 | 216 | "react/no-children-prop": 0,
|
223 |
| - "react/display-name": 0, |
224 |
| - "no-nested-ternary": 0, |
225 | 217 | "react/prop-types": 0
|
226 | 218 | }
|
227 | 219 | }
|
|
0 commit comments