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 = {
clearMocks: true,
roots: ['<rootDir>/src'],
roots: ['<rootDir>/src', '<rootDir>/tests'],
testEnvironment: 'node',
preset: 'ts-jest',
setupFiles: ['dotenv/config']

View File

@ -1,4 +1,4 @@
import { appSendGet } from '../../../tests/utils'
import { appSendGet } from '../../../../tests/utils'
describe('albumSearch requests', () => {
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', () => {
it('should respond 200 to calls with arl', async () => {

View File

@ -1,6 +1,6 @@
import { Application } from 'express'
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 sendPost = (app: Application) => (uri: string) => request(app).post(uri).send()