Skip to content

Commit 742fe1b

Browse files
committed
chore: Rebased remote tests on the repository
1 parent 45fe2dd commit 742fe1b

31 files changed

Lines changed: 420 additions & 665 deletions

File tree

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
DPKIT_MYSQL_URL='<url>'
2-
DPKIT_POSTGRESQL_URL='<url>'
1+
FRICTIONLESS_MYSQL_URL='<url>'
2+
FRICTIONLESS_POSTGRESQL_URL='<url>'

.github/workflows/general.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- name: Upload Coverage
3737
uses: codecov/codecov-action@v5
3838
with:
39+
token: ${{ secrets.CODECOV_TOKEN }}
3940
slug: frictionlessdata/frictionless-ts
4041

4142
services:

database/adapters/mysql.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import { createAdapter } from "./create.ts"
88

99
useRecording()
1010

11-
const path = process.env.DPKIT_MYSQL_URL
11+
const path = process.env.FRICTIONLESS_MYSQL_URL
1212

1313
// Vitest runs in-file tests sequentially so we can use the same table
14-
const dialect = { table: "dpkit" }
14+
const dialect = { table: "frictionless" }
1515
const record1 = { id: 1, name: "english" }
1616
const record2 = { id: 2, name: "中文" }
1717

database/adapters/postgresql.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import { createAdapter } from "./create.ts"
88

99
useRecording()
1010

11-
const path = process.env.DPKIT_POSTGRESQL_URL
11+
const path = process.env.FRICTIONLESS_POSTGRESQL_URL
1212

1313
// Vitest runs in-file tests sequentially so we can use the same table
14-
const dialect = { table: "dpkit" }
14+
const dialect = { table: "frictionless" }
1515
const record1 = { id: 1, name: "english" }
1616
const record2 = { id: 2, name: "中文" }
1717

database/adapters/sqlite.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { createAdapter } from "./create.ts"
1111

1212
useRecording()
1313

14-
const dialect = { table: "dpkit" }
14+
const dialect = { table: "frictionless" }
1515
const record1 = { id: 1, name: "english" }
1616
const record2 = { id: 2, name: "中文" }
1717

database/schema/infer.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe.skip("inferDatabaseSchema", () => {
77
await expect(
88
inferDatabaseSchema({
99
format: "sqlite",
10-
dialect: { table: "dpkit" },
10+
dialect: { table: "frictionless" },
1111
}),
1212
).rejects.toThrow("Resource path is not defined")
1313
})
@@ -26,7 +26,7 @@ describe.skip("inferDatabaseSchema", () => {
2626
inferDatabaseSchema({
2727
path: "path",
2828
format: "unsupported" as any,
29-
dialect: { table: "dpkit" },
29+
dialect: { table: "frictionless" },
3030
}),
3131
).rejects.toThrow('Unsupported database format: "unsupported"')
3232
})

database/table/load.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe("loadDatabaseTable", () => {
66
await expect(
77
loadDatabaseTable({
88
format: "sqlite",
9-
dialect: { table: "dpkit" },
9+
dialect: { table: "frictionless" },
1010
}),
1111
).rejects.toThrow("Resource path is not defined")
1212
})
@@ -25,7 +25,7 @@ describe("loadDatabaseTable", () => {
2525
loadDatabaseTable({
2626
path: "path",
2727
format: "unsupported" as any,
28-
dialect: { table: "dpkit" },
28+
dialect: { table: "frictionless" },
2929
}),
3030
).rejects.toThrow('Unsupported database format: "unsupported"')
3131
})

table/plugins/arrow/table/fixtures/generated/loadArrowTable-file-variations-should-load-remote-file-multipart_3177840048/recording.har

Lines changed: 56 additions & 138 deletions
Large diffs are not rendered by default.

table/plugins/arrow/table/fixtures/generated/loadArrowTable-file-variations-should-load-remote-file_1224085963/recording.har

Lines changed: 28 additions & 69 deletions
Large diffs are not rendered by default.

table/plugins/arrow/table/load.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ describe("loadArrowTable", () => {
3434
])
3535
})
3636

37-
it("should load remote file", async () => {
37+
it.skip("should load remote file", async () => {
3838
const table = await loadArrowTable({
39-
path: "https://raw.githubusercontent.com/datisthq/dpkit/refs/heads/main/arrow/table/fixtures/table.arrow",
39+
path: "https://github.com/frictionlessdata/frictionless-ts/raw/refs/heads/main/table/plugins/arrow/table/fixtures/table.arrow",
4040
})
4141

4242
expect((await table.collect()).toRecords()).toEqual([
@@ -45,11 +45,11 @@ describe("loadArrowTable", () => {
4545
])
4646
})
4747

48-
it("should load remote file (multipart)", async () => {
48+
it.skip("should load remote file (multipart)", async () => {
4949
const table = await loadArrowTable({
5050
path: [
51-
"https://raw.githubusercontent.com/datisthq/dpkit/refs/heads/main/arrow/table/fixtures/table.arrow",
52-
"https://raw.githubusercontent.com/datisthq/dpkit/refs/heads/main/arrow/table/fixtures/table.arrow",
51+
"https://github.com/frictionlessdata/frictionless-ts/raw/refs/heads/main/table/plugins/arrow/table/fixtures/table.arrow",
52+
"https://github.com/frictionlessdata/frictionless-ts/raw/refs/heads/main/table/plugins/arrow/table/fixtures/table.arrow",
5353
],
5454
})
5555

0 commit comments

Comments
 (0)