build(platform-browser): exclude node incompatible tests from :test target. (#21053)
PR Close #21053
This commit is contained in:
@ -96,7 +96,8 @@ export class SwTestHarness implements ServiceWorkerGlobalScope, Adapter, Context
|
||||
} as any;
|
||||
|
||||
static envIsSupported(): boolean {
|
||||
return (typeof URL === 'function') || (typeof require === 'function' && typeof require('url')['parse'] === 'function');
|
||||
return (typeof URL === 'function') ||
|
||||
(typeof require === 'function' && typeof require('url')['parse'] === 'function');
|
||||
}
|
||||
|
||||
time: number;
|
||||
|
Reference in New Issue
Block a user