mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-13 12:19:25 +00:00
chore(web): converts lm-worker test to typescript, uses plugin
This commit is contained in:
parent
6571e8b383
commit
09d8ea0aa8
2 changed files with 5 additions and 4 deletions
|
|
@ -9,9 +9,6 @@ describe('LMLayerWorker', function () {
|
|||
|
||||
describe('LMLayerWorkerCode', function() {
|
||||
it('should exist!', function() {
|
||||
// assert.isFunction(LMLayerWorkerCode,
|
||||
// 'Could not find LMLayerWorkerCode! Does embedded_worker.js exist?'
|
||||
// );
|
||||
assert.isString(LMLayerWorkerCode);
|
||||
});
|
||||
});
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
// @ts-check
|
||||
import { devices, playwrightLauncher } from '@web/test-runner-playwright';
|
||||
import { defaultReporter, summaryReporter } from '@web/test-runner';
|
||||
import { esbuildPlugin } from '@web/dev-server-esbuild';
|
||||
import named from '@keymanapp/common-test-resources/test-runner-rename-browser.mjs'
|
||||
import { fileURLToPath } from 'url';
|
||||
import { dirname, resolve } from 'path';
|
||||
|
|
@ -26,7 +27,10 @@ export default {
|
|||
concurrency: 10,
|
||||
nodeResolve: true,
|
||||
files: [
|
||||
'**/*.spec.mjs'
|
||||
'**/*.spec.ts'
|
||||
],
|
||||
plugins: [
|
||||
esbuildPlugin({ts: true, target: 'auto'})
|
||||
],
|
||||
reporters: [
|
||||
summaryReporter({}), /* local-dev mocha-style */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue