chore: moved tests folder outside src folder

This commit is contained in:
Roberto Tonino 2021-05-11 21:09:00 +02:00
parent cbd6bd4791
commit 8c92f78e52
5 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
module.exports = { module.exports = {
clearMocks: true, clearMocks: true,
roots: ['<rootDir>/src'], roots: ['<rootDir>/src', '<rootDir>/tests'],
testEnvironment: 'node', testEnvironment: 'node',
preset: 'ts-jest', preset: 'ts-jest',
setupFiles: ['dotenv/config'] setupFiles: ['dotenv/config']

View File

@ -1,4 +1,4 @@
import { appSendGet } from '../../../tests/utils' import { appSendGet } from '../../../../tests/utils'
describe('albumSearch requests', () => { describe('albumSearch requests', () => {
it('should respond 200 to calls with term', async () => { it('should respond 200 to calls with term', async () => {

View File

@ -1,4 +1,4 @@
import { appSendPost } from '../../../tests/utils' import { appSendPost } from '../../../../tests/utils'
describe('login-arl requests', () => { describe('login-arl requests', () => {
it('should respond 200 to calls with arl', async () => { it('should respond 200 to calls with arl', async () => {

View File

@ -1,6 +1,6 @@
import { Application } from 'express' import { Application } from 'express'
import request from 'supertest' import request from 'supertest'
import { app } from '../app' import { app } from '../src/app'
export const sendGet = (app: Application) => (uri: string) => request(app).get(uri).send() export const sendGet = (app: Application) => (uri: string) => request(app).get(uri).send()
export const sendPost = (app: Application) => (uri: string) => request(app).post(uri).send() export const sendPost = (app: Application) => (uri: string) => request(app).post(uri).send()