mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-07 14:37:29 +00:00
chore(web): predictive-text brower-based tests to typescript - including some TS-exclusive syntax
This commit is contained in:
parent
f36bca65fd
commit
2c24f2c653
4 changed files with 8 additions and 6 deletions
|
|
@ -6,9 +6,9 @@ import { defaultCapabilities } from '../helpers.mjs';
|
|||
// Import assertions, even using 'with', aren't yet supported in Firefox's engine.
|
||||
// import hazelModel from '@keymanapp/common-test-resources/json/models/future_suggestions/i_got_distracted_by_hazel.json' with { type: 'json' };
|
||||
|
||||
/** @type {string} */
|
||||
let domain;
|
||||
let domain: string;
|
||||
|
||||
// Is based on raw JSON.
|
||||
let hazelModel;
|
||||
|
||||
/*
|
||||
|
|
@ -6,8 +6,7 @@ import { defaultCapabilities } from '../helpers.mjs';
|
|||
// Import assertions, even using 'with', aren't yet supported in Firefox's engine.
|
||||
// import hazelModel from '@keymanapp/common-test-resources/json/models/future_suggestions/i_got_distracted_by_hazel.json' with { type: 'json' };
|
||||
|
||||
/** @type {string} */
|
||||
let domain;
|
||||
let domain: string;
|
||||
|
||||
/*
|
||||
* How to run the worlist
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
// @ts-check
|
||||
import { devices, playwrightLauncher } from '@web/test-runner-playwright';
|
||||
import { summaryReporter } from '@web/test-runner';
|
||||
import teamcityReporter from '@keymanapp/common-test-resources/test-runner-TC-reporter.mjs';
|
||||
import { esbuildPlugin } from '@web/dev-server-esbuild';
|
||||
import { fileURLToPath } from 'url';
|
||||
import { dirname, resolve } from 'path';
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ export default {
|
|||
concurrency: 1,
|
||||
nodeResolve: true,
|
||||
files: [
|
||||
'**/*.spec.mjs'
|
||||
'**/*.spec.ts'
|
||||
],
|
||||
middleware: [
|
||||
// Rewrites short-hand paths for test resources, making them fully relative to the repo root.
|
||||
|
|
@ -35,6 +35,9 @@ export default {
|
|||
return next();
|
||||
}
|
||||
],
|
||||
plugins: [
|
||||
esbuildPlugin({ ts: true, target: 'auto'})
|
||||
],
|
||||
reporters: [
|
||||
summaryReporter({}), /* local-dev mocha-style */
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue