chore: moved tests folder outside src folder
This commit is contained in:
		
							parent
							
								
									cbd6bd4791
								
							
						
					
					
						commit
						8c92f78e52
					
				@ -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']
 | 
				
			||||||
 | 
				
			|||||||
@ -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 () => {
 | 
				
			||||||
 | 
				
			|||||||
@ -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 () => {
 | 
				
			||||||
 | 
				
			|||||||
@ -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()
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user