chore: moved tests folder outside src folder
This commit is contained in:
parent
cbd6bd4791
commit
8c92f78e52
@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
clearMocks: true,
|
||||
roots: ['<rootDir>/src'],
|
||||
roots: ['<rootDir>/src', '<rootDir>/tests'],
|
||||
testEnvironment: 'node',
|
||||
preset: 'ts-jest',
|
||||
setupFiles: ['dotenv/config']
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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()
|
Loading…
Reference in New Issue
Block a user