Skip to content

Commit c4ab491

Browse files
authored
fix: polyfill global.Node for angular testing (#2340)
1 parent ec8bbe0 commit c4ab491

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if (typeof Node === 'undefined' && !global.Node) {
2+
class DummyNode {}
3+
global.Node = DummyNode as any;
4+
}

nativescript-angular/testing/src/public_api.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import './polyfills';
12
export * from './util';
23
export * from './test-root-view';
34
export * from './nativescript_test_component_renderer';

0 commit comments

Comments
 (0)