Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- run: npm ci
- run: npm run build
- run: npm run ci-lint
- run: npm run typecheck
- run: npm run test
- uses: actions/upload-artifact@v4
with:
Expand Down
12 changes: 7 additions & 5 deletions test/Typesense/ApiCall.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,13 @@ describe("ApiCall", () => {
const apiCall = new ApiCall(client.configuration);

mockAxios
.onGet("https://node0/path/collections", "", {
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
"X-TYPESENSE-API-KEY": client.configuration.apiKey,
"x-header-name": "value",
.onGet("https://node0/path/collections", {
headers: {
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
"X-TYPESENSE-API-KEY": client.configuration.apiKey,
"x-header-name": "value",
},
})
.reply(200, JSON.stringify({}), { "content-type": "application/json" });

Expand Down
18 changes: 10 additions & 8 deletions test/Typesense/Operations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ describe("Operations", function () {
"/operations/schema_changes",
typesense.configuration.nodes[0],
),
null,
{
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
"X-TYPESENSE-API-KEY": typesense.configuration.apiKey,
headers: {
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
"X-TYPESENSE-API-KEY": typesense.configuration.apiKey,
},
},
)
.reply(200, [
Expand Down Expand Up @@ -108,11 +109,12 @@ describe("Operations", function () {
"/operations/schema_changes",
typesense.configuration.nodes[0],
),
null,
{
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
"X-TYPESENSE-API-KEY": typesense.configuration.apiKey,
headers: {
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
"X-TYPESENSE-API-KEY": typesense.configuration.apiKey,
},
},
)
.reply(200, []);
Expand Down
2 changes: 1 addition & 1 deletion test/Typesense/Stats.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("Stats", function () {
nodes: [
{
host: "node0",
port: "8108",
port: 8108,
protocol: "http",
},
],
Expand Down
2 changes: 1 addition & 1 deletion test/Typesense/StemmingDictionaries.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("StemmingDictionaries", function () {
nodes: [
{
host: "node0",
port: "8108",
port: 8108,
protocol: "http",
},
],
Expand Down
2 changes: 1 addition & 1 deletion test/Typesense/StemmingDictionary.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("StemmingDictionary", function () {
nodes: [
{
host: "node0",
port: "8108",
port: 8108,
protocol: "http",
},
],
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"include": ["./src/**/*.ts", "./test/**/*.ts"],
"compilerOptions": {
"noEmit": true,
"rootDir": "."
}
"rootDir": ".",
"target": "esnext",
"module": "esnext"
}
}
Loading