chore(web): fix tests

This commit is contained in:
Mo
2022-07-06 09:44:13 -05:00
parent e6859d4a8d
commit d315c8c6c1
4 changed files with 15 additions and 12 deletions

View File

@@ -9,23 +9,23 @@
"dist"
],
"scripts": {
"start": "webpack-dev-server --config web.webpack.dev.js",
"watch": "webpack -w --config web.webpack.dev.js",
"clean": "rm -fr dist",
"prebuild": "yarn clean",
"build": "webpack --config web.webpack.prod.js && yarn tsc",
"lint": "eslint src/javascripts",
"clean": "rm -fr dist",
"format": "prettier --write src/javascripts",
"tsc": "tsc --project tsconfig.json",
"lint": "eslint src/javascripts",
"prebuild": "yarn clean",
"start": "webpack-dev-server --config web.webpack.dev.js",
"test": "jest --config jest.config.js --coverage",
"upgrade:snjs": "ncu -u '@standardnotes/*'"
"tsc": "tsc --project tsconfig.json",
"upgrade:snjs": "ncu -u '@standardnotes/*'",
"watch": "webpack -w --config web.webpack.dev.js"
},
"devDependencies": {
"@babel/core": "*",
"@babel/plugin-transform-react-jsx": "^7.17.3",
"@babel/preset-env": "*",
"@babel/preset-typescript": "^7.16.7",
"@types/jest": "^27.4.1",
"@types/jest": "^27.5.1",
"@types/react": "^17.0.42",
"@types/react-dom": "^18.0.5",
"@types/wicg-file-system-access": "^2020.9.5",
@@ -41,6 +41,7 @@
"html-webpack-plugin": "^5.5.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.5.1",
"jest-environment-jsdom": "^27.5.1",
"lint-staged": ">=12",
"mini-css-extract-plugin": "^2.6.0",
"node-sass": "*",

View File

@@ -1,4 +1,5 @@
import { AlertService, ButtonType, sanitizeHtmlString } from '@standardnotes/snjs'
import { AlertService, ButtonType } from '@standardnotes/services'
import { sanitizeHtmlString } from '@standardnotes/utils'
import { SKAlert } from '@standardnotes/styles'
/** @returns a promise resolving to true if the user confirmed, false if they canceled */

View File

@@ -16,7 +16,7 @@
"declarationDir": "dist/@types",
"baseUrl": ".",
"jsx": "react-jsx",
"typeRoots": ["./src/javascripts/Types/External", "../../node_modules/@types"],
"typeRoots": ["./src/javascripts/Types/External", "../../node_modules/@types", "node_modules/@types"],
"paths": {
"@/*": ["./src/javascripts/*"],
"@Controllers/*": ["src/javascripts/Controllers/*"],