Skip to content

Commit

Permalink
fix(tests): import from src, not dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordfirespeed committed Aug 14, 2024
1 parent 0f80269 commit ba7d1bb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/modules/content-type.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, it } from 'vitest'

import * as contentType from '@/packages/content-type/src/index'
import { isPlainText, parse } from '@/packages/content-type/src/index'
import * as contentType from '@/packages/content-type/src'
import { isPlainText, parse } from '@/packages/content-type/src'

it('should help me', () => {
const parsed = parse('application/manifest+json')
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/cookie-signature.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest'

import * as cookie from '@/packages/cookie-signature'
import * as cookie from '@/packages/cookie-signature/src'

describe('.sign(val, secret)', () => {
it('should sign the cookie', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/proxy-addr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { describe, expect, it } from 'vitest'

import { allAddresses, compile, proxyAddress } from '@/packages/proxy-address'
import { allAddresses, compile, proxyAddress } from '@/packages/proxy-address/src'
import { createReq } from '@/test_helpers/createReq'

const trustAll = () => true
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/res.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from 'node:path'
import { makeFetch } from 'supertest-fetch'
import { describe, expect, it } from 'vitest'

import { sign } from '@/packages/cookie-signature'
import { sign } from '@/packages/cookie-signature/src'
import type { Response } from '@/packages/res/src'
import { runServer } from '@/test_helpers/runServer'

Expand Down

0 comments on commit ba7d1bb

Please sign in to comment.