Get all platform unit tests to run
This commit is contained in:
1 parent
5544c57c37
commit
b8baae7c25
14 files changed
+114
-137
No files matched your search
@@ -1,9 +0,0 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
@@ -1 +0,0 @@
|
||||
10.15.3
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"trailingComma": "es5",
|
||||
"printWidth": 80,
|
||||
"proseWrap": "always",
|
||||
"tabWidth": 2,
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"endOfLine": "lf"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
const base = require("../../jest.config.base.js");
|
||||
const pkg = require("./package");
|
||||
|
||||
const esModules = ["react-dnd"];
|
||||
|
||||
module.exports = {
|
||||
...base,
|
||||
name: pkg.name,
|
||||
displayName: pkg.name
|
||||
};
|
||||
@@ -15,14 +15,12 @@
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"cm": "npx git-cz",
|
||||
"lerna:test:unit": "jest --ci --runInBand --collectCoverage && codecov -F ui",
|
||||
"dev": "docz dev",
|
||||
"test": "cross-env CI=1 react-scripts test --env=jsdom --transformIgnorePatterns \"node_modules/(?!react-dnd)/\"",
|
||||
"test:watch": "react-scripts test --env=jsdom --transformIgnorePatterns \"node_modules/(?!react-dnd)/\"",
|
||||
"lerna:build": "webpack --config config/webpack.prod.js -w -d",
|
||||
"build": "rollup -c",
|
||||
"start": "rollup -c -w",
|
||||
"lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}",
|
||||
"prepare": "yarn build",
|
||||
"prepublishOnly": "yarn build",
|
||||
"generateStaticSite": "docz build",
|
||||
@@ -57,10 +55,7 @@
|
||||
"@mdx-js/tag": "^0.20.3",
|
||||
"all-contributors-cli": "6.7.0",
|
||||
"autoprefixer": "^9.6.0",
|
||||
"babel-plugin-inline-react-svg": "1.1.0",
|
||||
"commitizen": "3.0.7",
|
||||
"cpx": "1.5.0",
|
||||
"cross-env": "^5.2.0",
|
||||
"cz-conventional-changelog": "2.1.0",
|
||||
"docz": "1.2.0",
|
||||
"docz-core": "1.2.0",
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
import * as ReactViewerbase from './index.js';
|
||||
|
||||
describe('Top level exports', () => {
|
||||
test('have not changed', () => {
|
||||
const expectedExports = [
|
||||
'ICONS',
|
||||
//
|
||||
'CineDialog',
|
||||
'Dropdown',
|
||||
'ExpandableToolMenu',
|
||||
'ExampleDropTarget',
|
||||
'Icon',
|
||||
'LayoutButton',
|
||||
'LayoutChooser',
|
||||
'LayoutManager',
|
||||
'LayoutPanelDropTarget',
|
||||
'MeasurementTable',
|
||||
'MeasurementTableItem',
|
||||
'Overlay',
|
||||
'OverlayTrigger',
|
||||
'PlayClipButton',
|
||||
'QuickSwitch',
|
||||
'RoundedButtonGroup',
|
||||
'ScrollableArea',
|
||||
'SelectTree',
|
||||
'SimpleDialog',
|
||||
'StudyBrowser',
|
||||
'StudyList',
|
||||
'TableList',
|
||||
'TableListItem',
|
||||
'ThumbnailEntry',
|
||||
'Toolbar',
|
||||
'ToolbarButton',
|
||||
'ToolbarSection',
|
||||
'Tooltip',
|
||||
'AboutModal',
|
||||
'UserPreferences',
|
||||
'UserPreferencesModal',
|
||||
'ViewerbaseDragDropContext',
|
||||
].sort();
|
||||
|
||||
const exports = Object.keys(ReactViewerbase).sort();
|
||||
|
||||
expect(exports).toEqual(expectedExports);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user