File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change
1
+ process . env . TS_NODE_FILES = true
1
2
require ( 'ts-node/register' )
2
3
3
4
const { configure } = require ( 'japa' )
Original file line number Diff line number Diff line change 14
14
import * as test from 'japa'
15
15
import { createServer } from 'http'
16
16
import * as supertest from 'supertest'
17
- import { HttpContext } from '@poppinss/http-server'
17
+ import { HttpContext as BaseHttpContext } from '@poppinss/http-server'
18
+ import { HttpContextConstructorContract } from '@ioc:Adonis/Core/HttpContext'
18
19
19
20
import { Cors } from '../src/Middleware/Cors'
20
21
import { specFixtures } from './fixtures/cors'
21
22
23
+ const HttpContext = BaseHttpContext as unknown as HttpContextConstructorContract
24
+
22
25
test . group ( 'Cors' , ( ) => {
23
26
specFixtures . forEach ( ( fixture ) => {
24
27
test ( fixture . title , async ( assert ) => {
You can’t perform that action at this time.
0 commit comments