Skip to content
GitLab
Explore
Sign in
ibmc-meg
s-locus-finder-reporter-frontend
Compare revisions
f7456470b2cfc7ab6a074a25d0d3d9214979fb40 to 0c096f5322e239ca26cdc47ef5c203c18625761a
Hide whitespace changes
Inline
Side-by-side
src/test.ts
View file @
0c096f53
...
...
@@ -4,20 +4,8 @@ import 'zone.js/testing';
import
{
getTestBed
}
from
'
@angular/core/testing
'
;
import
{
BrowserDynamicTestingModule
,
platformBrowserDynamicTesting
}
from
'
@angular/platform-browser-dynamic/testing
'
;
declare
const
require
:
{
context
(
path
:
string
,
deep
?:
boolean
,
filter
?:
RegExp
):
{
<
T
>
(
id
:
string
):
T
;
keys
():
string
[];
};
};
// First, initialize the Angular testing environment.
getTestBed
().
initTestEnvironment
(
BrowserDynamicTestingModule
,
platformBrowserDynamicTesting
()
);
// Then we find all the tests.
const
context
=
require
.
context
(
'
./
'
,
true
,
/
\.
spec
\.
ts$/
);
// And load the modules.
context
.
keys
().
map
(
context
);
tsconfig.json
View file @
0c096f53
...
...
@@ -16,13 +16,14 @@
"experimentalDecorators"
:
true
,
"moduleResolution"
:
"node"
,
"importHelpers"
:
true
,
"noImplicitAny"
:
false
,
"target"
:
"
es2017
"
,
"noImplicitAny"
:
false
,
"target"
:
"
ES2022
"
,
"module"
:
"es2020"
,
"lib"
:
[
"es2020"
,
"dom"
]
],
"useDefineForClassFields"
:
false
},
"angularCompilerOptions"
:
{
"enableI18nLegacyMessageIdFormat"
:
false
,
...
...
Prev
1
2
Next