chore(web): converts lm-worker test to typescript, uses plugin

This commit is contained in:
Joshua A. Horton 2024-05-07 13:45:06 +07:00
parent 6571e8b383
commit 09d8ea0aa8
2 changed files with 5 additions and 4 deletions

View file

@ -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);
});
});

View file

@ -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 */