Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshay committed Nov 17, 2023
1 parent 10bfacd commit 170cbaa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
matrix:
node_version:
- 18
- 20
cmd:
- build
- test
Expand Down
13 changes: 11 additions & 2 deletions packages/adapter/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ describe("index.ts", () => {
describe("getAdapter", () => {
const args: Args = {
binaryMediaTypes: [faker.string.sample()],
esBuildOptions: {},
locals: {},
mode: "ssr",
}

describe("when there are arguments", () => {
Expand All @@ -36,10 +39,12 @@ describe("index.ts", () => {
args: {
...args,
esBuildOptions: {},
locals: {},
mode: "ssr",
},
exports: ["handler"],
name: ADAPTER_NAME,
serverEntrypoint: `${ADAPTER_NAME}/lambda/index.js`,
serverEntrypoint: `${ADAPTER_NAME}/lambda/handlers/ssr.js`,
supportedAstroFeatures: {
assets: {
isSharpCompatible: false,
Expand All @@ -66,10 +71,12 @@ describe("index.ts", () => {
args: {
binaryMediaTypes: [],
esBuildOptions: {},
locals: {},
mode: "ssr",
},
exports: ["handler"],
name: ADAPTER_NAME,
serverEntrypoint: `${ADAPTER_NAME}/lambda/index.js`,
serverEntrypoint: `${ADAPTER_NAME}/lambda/handlers/ssr.js`,
supportedAstroFeatures: {
assets: {
isSharpCompatible: false,
Expand Down Expand Up @@ -210,6 +217,8 @@ describe("index.ts", () => {
{
...args,
esBuildOptions: {},
locals: {},
mode: "ssr",
},
)
})
Expand Down

0 comments on commit 170cbaa

Please sign in to comment.