mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-22 07:37:40 +00:00
chore(developer): fix server tests
This commit is contained in:
parent
e7ac526c69
commit
75a0977cdb
5 changed files with 33 additions and 10 deletions
|
|
@ -125,11 +125,19 @@ function installer_server() {
|
|||
cp -R "$PRODBUILDTEMP"/* "$KEYMAN_ROOT/developer/bin/server/"
|
||||
rm -rf "$PRODBUILDTEMP"
|
||||
}
|
||||
|
||||
function test_server() {
|
||||
# eslint .
|
||||
tsc --build test
|
||||
# c8 --reporter=lcov --reporter=text
|
||||
mocha
|
||||
}
|
||||
|
||||
builder_run_action clean:server clean_server
|
||||
builder_run_action configure:server configure_server
|
||||
builder_run_action build:server build_server
|
||||
builder_run_action build:addins build_addins
|
||||
builder_run_action test:server mocha
|
||||
builder_run_action test:server test_server
|
||||
# builder_run_action test:addins # no op
|
||||
builder_run_action installer:server installer_server
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
"@types/express": "^4.17.13",
|
||||
"@types/mocha": "^9.1.0",
|
||||
"@types/multer": "^1.4.7",
|
||||
"@types/node": "^17.0.0",
|
||||
"@types/node": "^20.4.1",
|
||||
"@types/ws": "^8.2.2",
|
||||
"chai": "^4.3.4",
|
||||
"copyfiles": "^2.4.1",
|
||||
|
|
@ -39,6 +39,6 @@
|
|||
},
|
||||
"mocha": {
|
||||
"require": "ts-node/register",
|
||||
"spec": "**/*.test.ts"
|
||||
"spec": "build/**/*.test.js"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
16
developer/src/server/test/tsconfig.json
Normal file
16
developer/src/server/test/tsconfig.json
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"extends": "../../../../tsconfig.esm-base.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"rootDir": ".",
|
||||
"rootDirs": ["./", "../src/"],
|
||||
"outDir": "../build/test",
|
||||
"baseUrl": ".",
|
||||
},
|
||||
"include": [
|
||||
"**/*.test.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../" },
|
||||
]
|
||||
}
|
||||
|
|
@ -1,8 +1,6 @@
|
|||
import {assert} from 'chai';
|
||||
import 'mocha';
|
||||
|
||||
import { extractVersionData } from './version-data.js';
|
||||
|
||||
import { extractVersionData } from '../src/version-data.js';
|
||||
|
||||
describe('extractVersionData', function() {
|
||||
it('should parse version strings', function() {
|
||||
9
package-lock.json
generated
9
package-lock.json
generated
|
|
@ -2654,7 +2654,7 @@
|
|||
"@types/express": "^4.17.13",
|
||||
"@types/mocha": "^9.1.0",
|
||||
"@types/multer": "^1.4.7",
|
||||
"@types/node": "^17.0.0",
|
||||
"@types/node": "^20.4.1",
|
||||
"@types/ws": "^8.2.2",
|
||||
"chai": "^4.3.4",
|
||||
"copyfiles": "^2.4.1",
|
||||
|
|
@ -2674,9 +2674,10 @@
|
|||
"license": "MIT"
|
||||
},
|
||||
"developer/src/server/node_modules/@types/node": {
|
||||
"version": "17.0.45",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
"version": "20.8.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.2.tgz",
|
||||
"integrity": "sha512-Vvycsc9FQdwhxE3y3DzeIxuEJbWGDsnrxvMADzTDF/lcdR9/K+AQIeAghTQsHtotg/q0j3WEOYS/jQgSdWue3w==",
|
||||
"dev": true
|
||||
},
|
||||
"developer/src/server/node_modules/busboy": {
|
||||
"version": "1.6.0",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue