|
33 | 33 | "size:why": "size-limit --why packages/material-ui/build/index.js",
|
34 | 34 | "start": "yarn docs:dev",
|
35 | 35 | "test": "yarn lint && yarn typescript && yarn test:coverage",
|
36 |
| - "test:coverage": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc mocha 'packages/**/*.test.js' 'docs/**/*.test.js' 'scripts/**/*.test.js' 'test/utils/**/*.test.js' --exclude '**/node_modules/**' && nyc report --reporter=lcovonly", |
37 |
| - "test:coverage:html": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc mocha 'packages/**/*.test.js' 'docs/**/*.test.js' 'scripts/**/*.test.js' 'test/utils/**/*.test.js' --exclude '**/node_modules/**' && nyc report --reporter=html", |
| 36 | + "test:coverage": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}' 'scripts/**/*.test.{js,ts,tsx}' 'test/utils/**/*.test.{js,ts,tsx}' --exclude '**/node_modules/**' && nyc report --reporter=lcovonly", |
| 37 | + "test:coverage:html": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}' 'scripts/**/*.test.{js,ts,tsx}' 'test/utils/**/*.test.{js,ts,tsx}' --exclude '**/node_modules/**' && nyc report --reporter=html", |
38 | 38 | "test:karma": "cross-env NODE_ENV=test karma start test/karma.conf.js",
|
39 | 39 | "test:regressions": "yarn test:regressions:build && rimraf test/regressions/screenshots/chrome/* && vrtest run --config test/vrtest.config.js --record",
|
40 | 40 | "test:regressions:build": "webpack --config test/regressions/webpack.config.js",
|
41 | 41 | "test:umd": "node packages/material-ui/test/umd/run.js",
|
42 |
| - "test:unit": "cross-env NODE_ENV=test mocha 'packages/**/*.test.js' 'docs/**/*.test.js' 'scripts/**/*.test.js' 'test/utils/**/*.test.js' --exclude '**/node_modules/**'", |
| 42 | + "test:unit": "cross-env NODE_ENV=test mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}' 'scripts/**/*.test.{js,ts,tsx}' 'test/utils/**/*.test.{js,ts,tsx}' --exclude '**/node_modules/**'", |
43 | 43 | "test:watch": "yarn test:unit --watch",
|
44 | 44 | "typescript": "lerna run typescript --parallel"
|
45 | 45 | },
|
|
179 | 179 | "packages/material-ui-styles/src/**/*.js"
|
180 | 180 | ],
|
181 | 181 | "exclude": [
|
182 |
| - "**/*.test.js" |
| 182 | + "**/*.test.{js,ts,tsx}" |
183 | 183 | ],
|
184 | 184 | "sourceMap": false,
|
185 | 185 | "instrument": false
|
|
0 commit comments