Skip to content

Commit

Permalink
refactor(integration) resolve module path
Browse files Browse the repository at this point in the history
  • Loading branch information
jbpionnier committed Sep 30, 2018
1 parent 65bb7e7 commit 6193f50
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion integration/graphql/e2e/graphql-async-class.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { INestApplication } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import * as request from 'supertest';
import { AsyncClassApplicationModule } from './../src/async-options-class.module';
import { AsyncClassApplicationModule } from '../src/async-options-class.module';

describe('GraphQL (async class)', () => {
let app: INestApplication;
Expand Down
2 changes: 1 addition & 1 deletion integration/graphql/e2e/graphql-async-existing.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { INestApplication } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import * as request from 'supertest';
import { AsyncExistingApplicationModule } from './../src/async-options-existing.module';
import { AsyncExistingApplicationModule } from '../src/async-options-existing.module';

describe('GraphQL (async existing)', () => {
let app: INestApplication;
Expand Down
2 changes: 1 addition & 1 deletion integration/graphql/e2e/graphql-async.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { INestApplication } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import * as request from 'supertest';
import { AsyncApplicationModule } from './../src/async-options.module';
import { AsyncApplicationModule } from '../src/async-options.module';

describe('GraphQL (async configuration)', () => {
let app: INestApplication;
Expand Down
2 changes: 1 addition & 1 deletion integration/graphql/e2e/graphql.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from './../src/app.module';
import { ApplicationModule } from '../src/app.module';

describe('GraphQL', () => {
let app: INestApplication;
Expand Down
1 change: 0 additions & 1 deletion integration/hello-world/e2e/exceptions.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as request from 'supertest';
import { Test } from '@nestjs/testing';
import { INestApplication, HttpStatus } from '@nestjs/common';
import { ApplicationModule } from './../src/app.module';
import { ErrorsController } from '../src/errors/errors.controller';

describe('Error messages', () => {
Expand Down
2 changes: 1 addition & 1 deletion integration/hello-world/e2e/express-instance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as express from 'express';
import * as request from 'supertest';
import { Test } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import { ApplicationModule } from './../src/app.module';
import { ApplicationModule } from '../src/app.module';

describe('Hello world (express instance)', () => {
let server;
Expand Down
2 changes: 1 addition & 1 deletion integration/hello-world/e2e/fastify-adapter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { INestFastifyApplication } from '@nestjs/common/interfaces/nest-fastify-
import { FastifyAdapter } from '@nestjs/core/adapters/fastify-adapter';
import { Test } from '@nestjs/testing';
import { expect } from 'chai';
import { ApplicationModule } from './../src/app.module';
import { ApplicationModule } from '../src/app.module';

describe('Hello world (fastify adapter)', () => {
let app: INestApplication & INestFastifyApplication;
Expand Down
2 changes: 1 addition & 1 deletion integration/hello-world/e2e/guards.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as request from 'supertest';
import { Test } from '@nestjs/testing';
import { INestApplication, Injectable, UnauthorizedException } from '@nestjs/common';
import { ApplicationModule } from './../src/app.module';
import { ApplicationModule } from '../src/app.module';
import { APP_GUARD } from '@nestjs/core';

@Injectable()
Expand Down
2 changes: 1 addition & 1 deletion integration/hello-world/e2e/hello-world.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as request from 'supertest';
import { Test } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import { ApplicationModule } from './../src/app.module';
import { ApplicationModule } from '../src/app.module';

describe('Hello world (default adapter)', () => {
let server;
Expand Down
2 changes: 1 addition & 1 deletion integration/hello-world/e2e/interceptors.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as request from 'supertest';
import { Test } from '@nestjs/testing';
import { INestApplication, Injectable } from '@nestjs/common';
import { ApplicationModule } from './../src/app.module';
import { ApplicationModule } from '../src/app.module';
import { APP_INTERCEPTOR } from '@nestjs/core';
import { of } from 'rxjs';
import { map } from 'rxjs/operators';
Expand Down
2 changes: 1 addition & 1 deletion integration/hello-world/e2e/local-pipes.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as request from 'supertest';
import { Test } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import { ApplicationModule } from './../src/app.module';
import { ApplicationModule } from '../src/app.module';

describe('Hello world (default adapter)', () => {
let server;
Expand Down
2 changes: 1 addition & 1 deletion integration/microservices/e2e/sum-grpc.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('GRPC transport', () => {
transport: Transport.GRPC,
options: {
package: 'math',
protoPath: join(__dirname, './../src/grpc/math.proto'),
protoPath: join(__dirname, '../src/grpc/math.proto'),
},
});
await app.startAllMicroservicesAsync();
Expand Down
2 changes: 1 addition & 1 deletion integration/microservices/e2e/sum-rpc.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Transport } from '@nestjs/microservices';
import { Test } from '@nestjs/testing';
import * as express from 'express';
import * as request from 'supertest';
import { ApplicationModule } from './../src/app.module';
import { ApplicationModule } from '../src/app.module';

describe('RPC transport', () => {
let server;
Expand Down
2 changes: 1 addition & 1 deletion integration/mongoose/e2e/mongoose.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from './../src/app.module';
import { ApplicationModule } from '../src/app.module';

describe('Mongoose', () => {
let server;
Expand Down
2 changes: 1 addition & 1 deletion integration/typeorm/e2e/typeorm-async-class.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { AsyncOptionsClassModule } from './../src/async-class-options.module';
import { AsyncOptionsClassModule } from '../src/async-class-options.module';

describe('TypeOrm (async configuration)', () => {
let server;
Expand Down
2 changes: 1 addition & 1 deletion integration/typeorm/e2e/typeorm-async-existing.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { AsyncOptionsExistingModule } from './../src/async-existing-options.module';
import { AsyncOptionsExistingModule } from '../src/async-existing-options.module';

describe('TypeOrm (async configuration)', () => {
let server;
Expand Down
2 changes: 1 addition & 1 deletion integration/typeorm/e2e/typeorm-async-options.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { AsyncOptionsFactoryModule } from './../src/async-options.module';
import { AsyncOptionsFactoryModule } from '../src/async-options.module';

describe('TypeOrm (async configuration)', () => {
let server;
Expand Down
2 changes: 1 addition & 1 deletion integration/typeorm/e2e/typeorm-async.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { AsyncApplicationModule } from './../src/app-async.module';
import { AsyncApplicationModule } from '../src/app-async.module';

describe('TypeOrm (async configuration)', () => {
let server;
Expand Down
2 changes: 1 addition & 1 deletion integration/typeorm/e2e/typeorm.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { INestApplication } from '@nestjs/common';
import { Test } from '@nestjs/testing';
import * as request from 'supertest';
import { ApplicationModule } from './../src/app.module';
import { ApplicationModule } from '../src/app.module';

describe('TypeOrm', () => {
let server;
Expand Down

0 comments on commit 6193f50

Please sign in to comment.