fixed test issues and watch mode for unit tests

This commit is contained in:
lotte
2020-04-30 12:13:41 +02:00
parent ef91468310
commit 4c48088920
10 changed files with 352 additions and 196 deletions

11
scripts/set-mock-env.ts Normal file
View File

@@ -0,0 +1,11 @@
import { copyFile } from 'fs';
// Configure Angular `environment.ts` file path
const sourcePath = './src/environments/mock-environment.ts';
const targetPath = './src/environments/environment.ts';
// destination.txt will be created or overwritten by default.
copyFile(sourcePath, targetPath, (err) => {
if (err) throw err;
console.log(sourcePath + ' was copied to ' + targetPath);
});