[Map] add polyline support #5406
Annotations
5 errors
Run yarn test:
src/Map/assets/test/abstract_map_controller.test.ts#L173
AssertionError: expected [ Array(1) ] to deeply equal [ { marker: 'marker', …(1) }, …(1) ]
- Expected
+ Received
Array [
Object {
"marker": "marker",
"title": "Paris",
},
- Object {
- "marker": "marker",
- "title": "Lyon",
- },
]
❯ test/abstract_map_controller.test.ts:173:36
|
Run yarn test:
src/Map/assets/src/abstract_map_controller.ts#L94
SyntaxError: Unexpected non-whitespace character after JSON at position 853 (line 1 column 854)
❯ object ../../../../../../../../../../../node_modules/.vite/deps/@hotwired_stimulus.js:2245:25
❯ extended.get ../../../../../../../../../../../node_modules/.vite/deps/@hotwired_stimulus.js:2113:18
❯ extended.connect ../../../../assets/src/abstract_map_controller.ts:94:97
❯ extended.connect src/map_controller.ts:81:14
|
Run yarn test:
src/Map/src/Bridge/Google/assets/test/map_controller.test.ts#L59
Error: expect(element).toHaveClass("pre-connected")
Expected the element to have class:
pre-connected
Received:
<html
lang="en"
>
<head>
<meta
charset="UTF-8"
/>
<link
href="/__vitest__/favicon.svg"
rel="icon"
type="image/svg+xml"
/>
<meta
content="width=device-width, initial-scale=1.0"
name="viewport"
/>
<title>
Vitest Browser Tester
</title>
<style>
html {
padding: 0;
margin: 0;
}
body {
padding: 0;
margin: 0;
min-height: 100vh;
}
</style>
<script
type="module"
>
const moduleCache = new Map();
function wrapModule(module) {
if (typeof module === "function") {
const promise = new Promise((resolve, reject) => {
if (typeof __vitest_mocker__ === "undefined")
return module().then(resolve, reject);
__vitest_mocker__.prepare().finally(() => {
module().then(resolve, reject);
});
});
moduleCache.set(promise, { promise, evaluated: false });
return promise.finally(() => moduleCache.delete(promise));
}
return module;
}
window.__vitest_browser_runner__ = {
wrapModule,
wrapDynamicImport: wrapModule,
moduleCache,
config: {"mode":"test","isolate":true,"defines":{},"setupFiles":["/home/runner/work/ux/ux/test/setup.js"],"allowOnly":false,"testTimeout":15000,"hookTimeout":30000,"clearMocks":false,"mockReset":false,"restoreMocks":false,"unstubEnvs":false,"unstubGlobals":false,"maxConcurrency":5,"pool":"forks","expect":{},"snapshotSerializers":[],"disableConsoleIntercept":false,"root":"/home/runner/work/ux/ux/src/Map/src/Bridge/Google/assets","globals":true,"coverage":{"reportsDirectory":"./coverage","provider":"v8","enabled":false,"htmlReporter":{}},"fakeTimers":{"loopLimit":10000,"shouldClearNativeTimers":true,"toFake":["setTimeout","clearTimeout","setInterval","clearInterval","setImmediate","clearImmediate","Date"]},"poolOptions":{"forks":{"singleFork":false,"isolate":true},"threads":{"singleThread":false,"isolate":true},"vmThreads":{"singleThread":false},"vmForks":{"singleFork":false}},"deps":{"web":{"transformAssets":true,"transformCss":true,"transformGlobPattern":[]},"optimizer":{"web":{"enabled":true},"ssr":{"enabled":true}},"moduleDirectories":["/node_modules/"]},"snapshotOptions":{"updateSnapshot":"none","snapshotFormat":{},"expand":false},"sequence":{"hooks":"stack"},"inspector":{"enabled":false,"waitForDebugger":false},"watch":false,"env":{"BASE_URL":"/","MODE":"test","DEV":true,"PROD":false,"VITEST_BROWSER_DEBUG":""},"browser":{"name":"chromium","headless":true,"isolate":true,"fileParallelism":true,"ui":false,"viewport":{"width":414,"height":896},"screenshotFailures":true,"locators":{"testIdAttribute":"data-testid"}}},
viteConfig: {"root":"/home/runner/work/ux/ux/src/Map/src/Bridge/Google/assets"},
files: ["/home/runner/work/ux/ux/src/Map/src/Bridge/Google/assets/test/map_controller.test.ts"],
type: "tester",
contextId: "91bbfee5-358a-486d-823c-e2372b59c052",
testerId: "636a0f79-5c15-4a68-8fb9-38ea9eac3313",
provider: "playwright",
providedContext: "[{}]",
};
const config = __vitest_browser_runner__.config;
if (config.testNamePattern)
config.testNamePattern = parseRegexp(config.testNamePattern);
function parseRegexp(input) {
// Parse input
const m = input.match(/(\/?)(.+)\1([a-z]*)/i);
// match nothing
if (!m) return /$^/;
// Invalid flags
if (m[3] && !/^(?!.*?(.).*?\1)[gmixXsuUAJ]+$/.test(m[3]))
return RegExp(input);
// Create the regular expression
return new RegExp(m[2], m[3]);
}
</script>
<script />
<script
src="/@fs/home/runner/work/ux/ux/node_modules/@vitest/browser/dist/client/error-catcher.js"
type="module"
/>
<script
src="/@fs/home/runner/work/ux/ux/node_modules/@vitest/browser/dist/locators/playwright.js"
type="module"
/>
<script
type="module"
>
const{parse:$
|
Run yarn test:
src/Map/src/Bridge/Leaflet/assets/test/map_controller.test.ts#L59
Error: expect(element).toHaveClass("pre-connected")
Expected the element to have class:
pre-connected
Received:
<html
lang="en"
>
<head>
<meta
charset="UTF-8"
/>
<link
href="/__vitest__/favicon.svg"
rel="icon"
type="image/svg+xml"
/>
<meta
content="width=device-width, initial-scale=1.0"
name="viewport"
/>
<title>
Vitest Browser Tester
</title>
<style>
html {
padding: 0;
margin: 0;
}
body {
padding: 0;
margin: 0;
min-height: 100vh;
}
</style>
<script
type="module"
>
const moduleCache = new Map();
function wrapModule(module) {
if (typeof module === "function") {
const promise = new Promise((resolve, reject) => {
if (typeof __vitest_mocker__ === "undefined")
return module().then(resolve, reject);
__vitest_mocker__.prepare().finally(() => {
module().then(resolve, reject);
});
});
moduleCache.set(promise, { promise, evaluated: false });
return promise.finally(() => moduleCache.delete(promise));
}
return module;
}
window.__vitest_browser_runner__ = {
wrapModule,
wrapDynamicImport: wrapModule,
moduleCache,
config: {"mode":"test","isolate":true,"defines":{},"setupFiles":["/home/runner/work/ux/ux/test/setup.js"],"allowOnly":false,"testTimeout":15000,"hookTimeout":30000,"clearMocks":false,"mockReset":false,"restoreMocks":false,"unstubEnvs":false,"unstubGlobals":false,"maxConcurrency":5,"pool":"forks","expect":{},"snapshotSerializers":[],"disableConsoleIntercept":false,"root":"/home/runner/work/ux/ux/src/Map/src/Bridge/Leaflet/assets","globals":true,"coverage":{"reportsDirectory":"./coverage","provider":"v8","enabled":false,"htmlReporter":{}},"fakeTimers":{"loopLimit":10000,"shouldClearNativeTimers":true,"toFake":["setTimeout","clearTimeout","setInterval","clearInterval","setImmediate","clearImmediate","Date"]},"poolOptions":{"forks":{"singleFork":false,"isolate":true},"threads":{"singleThread":false,"isolate":true},"vmThreads":{"singleThread":false},"vmForks":{"singleFork":false}},"deps":{"web":{"transformAssets":true,"transformCss":true,"transformGlobPattern":[]},"optimizer":{"web":{"enabled":true},"ssr":{"enabled":true}},"moduleDirectories":["/node_modules/"]},"snapshotOptions":{"updateSnapshot":"none","snapshotFormat":{},"expand":false},"sequence":{"hooks":"stack"},"inspector":{"enabled":false,"waitForDebugger":false},"watch":false,"env":{"BASE_URL":"/","MODE":"test","DEV":true,"PROD":false,"VITEST_BROWSER_DEBUG":""},"browser":{"name":"chromium","headless":true,"isolate":true,"fileParallelism":true,"ui":false,"viewport":{"width":414,"height":896},"screenshotFailures":true,"locators":{"testIdAttribute":"data-testid"}}},
viteConfig: {"root":"/home/runner/work/ux/ux/src/Map/src/Bridge/Leaflet/assets"},
files: ["/home/runner/work/ux/ux/src/Map/src/Bridge/Leaflet/assets/test/map_controller.test.ts"],
type: "tester",
contextId: "a2cea89c-0511-4795-8038-dd3980451dc2",
testerId: "f8f2e8b8-2bda-439c-8d77-daaf3f300530",
provider: "playwright",
providedContext: "[{}]",
};
const config = __vitest_browser_runner__.config;
if (config.testNamePattern)
config.testNamePattern = parseRegexp(config.testNamePattern);
function parseRegexp(input) {
// Parse input
const m = input.match(/(\/?)(.+)\1([a-z]*)/i);
// match nothing
if (!m) return /$^/;
// Invalid flags
if (m[3] && !/^(?!.*?(.).*?\1)[gmixXsuUAJ]+$/.test(m[3]))
return RegExp(input);
// Create the regular expression
return new RegExp(m[2], m[3]);
}
</script>
<script />
<script
src="/@fs/home/runner/work/ux/ux/node_modules/@vitest/browser/dist/client/error-catcher.js"
type="module"
/>
<script
src="/@fs/home/runner/work/ux/ux/node_modules/@vitest/browser/dist/locators/playwright.js"
type="module"
/>
<script
type="module"
>
const{pars
|
Run yarn test
Process completed with exit code 1.
|
Loading