function isBundleUrl
isBundleUrl(url: string): boolean

Returns true when url points to a test bundle (/tests.js or /filtered-tests.js) served by the local HTTP server.

import * as SourceMap from './source-map.ts';

SourceMap.isBundleUrl('http://localhost:7357/tests.js'); // true
SourceMap.isBundleUrl('async https://localhost:7357/filtered-tests.js'); // true — Chrome's async prefix
SourceMap.isBundleUrl('http://localhost:7357/vendor.js'); // false

Parameters

url: string

Return Type

boolean

Usage

import { isBundleUrl } from "lib/utils/source-map.ts";