Skip to content

Commit

Permalink
Try fix env tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flevi29 committed Oct 5, 2024
1 parent da25764 commit b4747ef
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 21 deletions.
5 changes: 3 additions & 2 deletions tests/env/typescript-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "src/index.js",
"scripts": {
"build": "tsc --project tsconfig.json",
"start": "tsc --project tsconfig.json && node dist/index.js"
"start": "tsc --project tsconfig.json && node dist/tests/env/typescript-node/src/index.js"
},
"keywords": [
"demo",
Expand All @@ -14,7 +14,8 @@
"author": "Charlotte Vermandel",
"license": "ISC",
"devDependencies": {
"typescript": "4.4.4"
"typescript": "^5.6.2",
"@types/node": "^20.16.10"
},
"dependencies": {}
}
5 changes: 1 addition & 4 deletions tests/env/typescript-node/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@

// @ts-ignore
import {
// @ts-ignore
MeiliSearch,
IndexObject,
SearchResponse,
Hits,
Hit,
SearchParams,
} from '../../../../'
} from '../../../../src'
import { generateTenantToken } from '../../../../src/token'

const config = {
Expand Down
16 changes: 5 additions & 11 deletions tests/env/typescript-node/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"noEmit": false,
"baseUrl": "",
"declarationDir": "./dist/types",
"lib": [
"ES2020",
"dom" // Added to get Request type error
],
"module": "commonjs",
"moduleResolution": "node",
"outDir": "./dist",
"types": ["../../../dist/types"]
"noEmit": false,
"noEmitOnError": true,
"moduleResolution": "node",
"module": "commonjs",
"outDir": "./dist"
},
"include": ["src/index.ts"]
}
20 changes: 16 additions & 4 deletions tests/env/typescript-node/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@
# yarn lockfile v1


[email protected]:
version "4.4.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c"
integrity sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==
"@types/node@^20.16.10":
version "20.16.10"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.16.10.tgz#0cc3fdd3daf114a4776f54ba19726a01c907ef71"
integrity sha512-vQUKgWTjEIRFCvK6CyriPH3MZYiYlNy0fKiEYHWbcoWLEgs4opurGGKlebrTLqdSMIbXImH6XExNiIyNUv3WpA==
dependencies:
undici-types "~6.19.2"

typescript@^5.6.2:
version "5.6.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.2.tgz#d1de67b6bef77c41823f822df8f0b3bcff60a5a0"
integrity sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==

undici-types@~6.19.2:
version "6.19.8"
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02"
integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==

0 comments on commit b4747ef

Please sign in to comment.