fix(): integration tests cleanup, update deps versions

This commit is contained in:
Kamil Myśliwiec
2020-03-02 13:46:26 +01:00
parent b3c9d4c710
commit 5d2de5fd9a
49 changed files with 2247 additions and 22730 deletions

View File

@@ -2,7 +2,6 @@ import { getDirs } from './util/task-helpers';
// All paths are related to the base dir
export const source = 'packages';
export const integrationPath = 'integration';
export const samplePath = 'sample';
export const packagePaths = getDirs(source);

View File

@@ -1,20 +1,16 @@
import { task, src, dest } from 'gulp';
import { getDirs } from '../util/task-helpers';
import { samplePath, integrationPath } from '../config';
import { dest, src, task } from 'gulp';
import { join } from 'path';
import { samplePath } from '../config';
import { getDirs } from '../util/task-helpers';
/**
* Moves the compiled nest files into the
* `samples/*` and `integration/*` dirs.
* Moves the compiled nest files into the `samples/*` dirs.
*/
function move() {
const samplesDirs = getDirs(samplePath);
const integrationDirs = getDirs(integrationPath);
const directories = samplesDirs.concat(integrationDirs);
const distFiles = src(['node_modules/@nestjs/**/*']);
return directories.reduce(
return samplesDirs.reduce(
(distFile, dir) => distFile.pipe(dest(join(dir, '/node_modules/@nestjs'))),
distFiles,
);