feat: add building of SNJS Docker image for e2e testing purposes (#1225)

* feat: add building of SNJS Docker image for e2e testing purposes

* fix: contents of snjs package

* feat: add running e2e test suite

* fix: include mocha directory in the snjs yarn package

* fix: add triggering e2e tests with specific image tag

* fix: mocha tests url

* fix: add tests before publishing new version

* fix: temporary skip linter errors

* Revert "fix: temporary skip linter errors"

This reverts commit c989536930a291677f6ef8cad402feb13f066b8c.

* fix: replace test libraries with unpkg CDN versions

* fix: update yarn lock and remove cached libs

* fix: add missing library to mocha tests

* fix: restore chai-as-promised built version

* fix: serving sncrypto-web in mocha test suite

* fix: add copy of sncrypto-web to gitignore files
This commit is contained in:
Karol Sójko
2022-07-08 11:36:12 +02:00
committed by GitHub
parent 0d16e6faaa
commit 3e4e7fd0e0
41 changed files with 256 additions and 468 deletions

View File

@@ -8,12 +8,15 @@
"author": "Standard Notes",
"types": "dist/@types",
"files": [
"dist"
"dist",
"mocha",
"e2e-server.js"
],
"license": "AGPL-3.0-or-later",
"private": true,
"scripts": {
"start": "webpack -w --config webpack.dev.js",
"start:test-server": "yarn node e2e-server.js",
"clean": "rm -fr dist",
"prebuild": "yarn clean",
"build": "yarn tsc && webpack --config webpack.prod.js",
@@ -37,9 +40,6 @@
"@typescript-eslint/eslint-plugin": "^5.30.0",
"babel-jest": "^28.1.2",
"babel-loader": "^8.2.3",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"chai-subset": "^1.6.0",
"circular-dependency-plugin": "^5.2.2",
"crypto-js": "^4.1.1",
"docdash": "^1.2.0",
@@ -52,13 +52,9 @@
"jsdom": "^19.0.0",
"libsodium-wrappers": "^0.7.9",
"lodash": "^4.17.21",
"mocha": "^9.2.1",
"mocha-headless-chrome": "^4.0.0",
"nock": "^13.2.4",
"otplib": "^12.0.1",
"regenerator-runtime": "^0.13.9",
"script-loader": "^0.7.2",
"sinon": "^13.0.1",
"ts-jest": "^28.0.5",
"ts-loader": "^9.2.6",
"ts-node": "^10.8.1",