chore(web): fix tests
This commit is contained in:
@@ -9,23 +9,23 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"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",
|
"build": "webpack --config web.webpack.prod.js && yarn tsc",
|
||||||
"lint": "eslint src/javascripts",
|
"clean": "rm -fr dist",
|
||||||
"format": "prettier --write src/javascripts",
|
"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",
|
"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": {
|
"devDependencies": {
|
||||||
"@babel/core": "*",
|
"@babel/core": "*",
|
||||||
"@babel/plugin-transform-react-jsx": "^7.17.3",
|
"@babel/plugin-transform-react-jsx": "^7.17.3",
|
||||||
"@babel/preset-env": "*",
|
"@babel/preset-env": "*",
|
||||||
"@babel/preset-typescript": "^7.16.7",
|
"@babel/preset-typescript": "^7.16.7",
|
||||||
"@types/jest": "^27.4.1",
|
"@types/jest": "^27.5.1",
|
||||||
"@types/react": "^17.0.42",
|
"@types/react": "^17.0.42",
|
||||||
"@types/react-dom": "^18.0.5",
|
"@types/react-dom": "^18.0.5",
|
||||||
"@types/wicg-file-system-access": "^2020.9.5",
|
"@types/wicg-file-system-access": "^2020.9.5",
|
||||||
@@ -41,6 +41,7 @@
|
|||||||
"html-webpack-plugin": "^5.5.0",
|
"html-webpack-plugin": "^5.5.0",
|
||||||
"identity-obj-proxy": "^3.0.0",
|
"identity-obj-proxy": "^3.0.0",
|
||||||
"jest": "^27.5.1",
|
"jest": "^27.5.1",
|
||||||
|
"jest-environment-jsdom": "^27.5.1",
|
||||||
"lint-staged": ">=12",
|
"lint-staged": ">=12",
|
||||||
"mini-css-extract-plugin": "^2.6.0",
|
"mini-css-extract-plugin": "^2.6.0",
|
||||||
"node-sass": "*",
|
"node-sass": "*",
|
||||||
|
|||||||
@@ -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'
|
import { SKAlert } from '@standardnotes/styles'
|
||||||
|
|
||||||
/** @returns a promise resolving to true if the user confirmed, false if they canceled */
|
/** @returns a promise resolving to true if the user confirmed, false if they canceled */
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"declarationDir": "dist/@types",
|
"declarationDir": "dist/@types",
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"typeRoots": ["./src/javascripts/Types/External", "../../node_modules/@types"],
|
"typeRoots": ["./src/javascripts/Types/External", "../../node_modules/@types", "node_modules/@types"],
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/javascripts/*"],
|
"@/*": ["./src/javascripts/*"],
|
||||||
"@Controllers/*": ["src/javascripts/Controllers/*"],
|
"@Controllers/*": ["src/javascripts/Controllers/*"],
|
||||||
|
|||||||
@@ -7504,7 +7504,7 @@ __metadata:
|
|||||||
"@standardnotes/snjs": "workspace:*"
|
"@standardnotes/snjs": "workspace:*"
|
||||||
"@standardnotes/styles": "workspace:*"
|
"@standardnotes/styles": "workspace:*"
|
||||||
"@standardnotes/toast": "workspace:*"
|
"@standardnotes/toast": "workspace:*"
|
||||||
"@types/jest": ^27.4.1
|
"@types/jest": ^27.5.1
|
||||||
"@types/react": ^17.0.42
|
"@types/react": ^17.0.42
|
||||||
"@types/react-dom": ^18.0.5
|
"@types/react-dom": ^18.0.5
|
||||||
"@types/wicg-file-system-access": ^2020.9.5
|
"@types/wicg-file-system-access": ^2020.9.5
|
||||||
@@ -7521,6 +7521,7 @@ __metadata:
|
|||||||
html-webpack-plugin: ^5.5.0
|
html-webpack-plugin: ^5.5.0
|
||||||
identity-obj-proxy: ^3.0.0
|
identity-obj-proxy: ^3.0.0
|
||||||
jest: ^27.5.1
|
jest: ^27.5.1
|
||||||
|
jest-environment-jsdom: ^27.5.1
|
||||||
lint-staged: ">=12"
|
lint-staged: ">=12"
|
||||||
mini-css-extract-plugin: ^2.6.0
|
mini-css-extract-plugin: ^2.6.0
|
||||||
mobx: ^6.5.0
|
mobx: ^6.5.0
|
||||||
@@ -8386,7 +8387,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/jest@npm:^27.4.1":
|
"@types/jest@npm:^27.4.1, @types/jest@npm:^27.5.1":
|
||||||
version: 27.5.2
|
version: 27.5.2
|
||||||
resolution: "@types/jest@npm:27.5.2"
|
resolution: "@types/jest@npm:27.5.2"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
Reference in New Issue
Block a user