ead9aab888
The test that was added is not a good test. If we want to test things, we should be testing logic that is error prone such as all the mouse handling logic and state management. Adding a test for something trivial as displaying a list of data is just going to be annoying when we eventually change the UI and the test breaks. Since this is the only test using enzyme, I also removed enzyme. We can add it back if we want to test a component using it.
71 lines
1.6 KiB
JSON
71 lines
1.6 KiB
JSON
{
|
|
"browserslist": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not ie <= 11",
|
|
"not op_mini all"
|
|
],
|
|
"dependencies": {
|
|
"browser-nativefs": "0.2.0",
|
|
"i18next-browser-languagedetector": "4.0.1",
|
|
"nanoid": "2.1.10",
|
|
"react": "16.12.0",
|
|
"react-dom": "16.12.0",
|
|
"react-scripts": "3.3.0",
|
|
"roughjs": "4.0.4"
|
|
},
|
|
"description": "",
|
|
"devDependencies": {
|
|
"@types/jest": "25.1.0",
|
|
"@types/nanoid": "2.1.0",
|
|
"@types/react": "16.9.19",
|
|
"@types/react-dom": "16.9.5",
|
|
"husky": "4.2.1",
|
|
"lint-staged": "10.0.3",
|
|
"node-sass": "4.13.1",
|
|
"prettier": "1.19.1",
|
|
"rewire": "4.0.1",
|
|
"typescript": "3.7.5"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": "react-app",
|
|
"rules": {
|
|
"no-console": [
|
|
"warn",
|
|
{
|
|
"allow": [
|
|
"warn",
|
|
"error",
|
|
"info"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"homepage": "https://excalidraw.com",
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"main": "src/index.js",
|
|
"name": "excalidraw",
|
|
"scripts": {
|
|
"build": "react-scripts build",
|
|
"build-node": "./scripts/build-node.js",
|
|
"eject": "react-scripts eject",
|
|
"fix": "npm run prettier -- --write",
|
|
"prettier": "prettier \"**/*.{js,css,scss,json,md,ts,tsx,html,yml}\" --ignore-path=.eslintignore",
|
|
"start": "react-scripts start",
|
|
"test": "npm run test:app",
|
|
"test:app": "react-scripts test --env=jsdom --passWithNoTests",
|
|
"test:code": "npm run prettier -- --list-different"
|
|
},
|
|
"version": "1.0.0",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/excalidraw/excalidraw.git"
|
|
}
|
|
}
|