@@ -123,6 +123,10 @@ export class SimpleAngularTestRunnerComponent
123
123
{
124
124
id : 'testing' ,
125
125
url : '/assets/runner' ,
126
+ } ,
127
+ ( { evalJs } ) => {
128
+ // evalJs(this.scriptLoaderService.getScript('shim'));
129
+ // evalJs(this.scriptLoaderService.getScript('zone'));
126
130
}
127
131
) ;
128
132
@@ -134,18 +138,20 @@ export class SimpleAngularTestRunnerComponent
134
138
sandbox . evalJs ( this . scriptLoaderService . getScript ( 'chai' ) ) ;
135
139
sandbox . evalJs ( this . scriptLoaderService . getScript ( 'mocha' ) ) ;
136
140
sandbox . evalJs ( this . scriptLoaderService . getScript ( 'test-bootstrap' ) ) ;
137
- sandbox . evalJs ( this . scriptLoaderService . getScript ( 'shim' ) ) ;
138
- sandbox . evalJs ( this . scriptLoaderService . getScript ( 'zone' ) ) ;
141
+ // sandbox.evalJs(this.scriptLoaderService.getScript('shim'));
142
+ // sandbox.evalJs(this.scriptLoaderService.getScript('zone'));
139
143
// sandbox.evalJs(this.scriptLoaderService.getScript('system-config'));
140
- sandbox . evalJs ( this . scriptLoaderService . getScript ( 'ng-bundle' ) ) ;
144
+ // sandbox.evalJs(this.scriptLoaderService.getScript('ng-bundle'));
141
145
142
146
this . subscription = this . changedFilesSubject . subscribe ( ( files ) => {
147
+ addMetaInformation ( sandbox , this . code ) ;
148
+
149
+
143
150
const hasErrors = Object . entries ( files )
144
- . filter ( ( [ path ] ) => path . match ( / \. j s $ / ) )
151
+ . filter ( ( [ path ] ) => path . match ( / \. j s $ / ) && ! path . startsWith ( 'code' ) )
145
152
. map ( ( [ path , code ] ) => {
146
153
try {
147
154
sandbox . evalJs ( `console.log('I remove modul')` ) ;
148
- addMetaInformation ( sandbox , this . code ) ;
149
155
sandbox . evalJs ( code ) ;
150
156
} catch ( e ) {
151
157
console . groupCollapsed ( e . message ) ;
0 commit comments