Skip to content

Commit 26b50f2

Browse files
committed
chore: fix template tests
1 parent 30361f9 commit 26b50f2

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/templates/plugin/typescript/src/__tests__/e2e.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ClientConfigBuilder, PolywrapClient } from "@polywrap/client-js";
1+
import { ClientConfigBuilder, IWrapPackage, PolywrapClient } from "@polywrap/client-js";
22
import { samplePlugin } from "../";
33

44
describe("e2e", () => {
@@ -13,7 +13,7 @@ describe("e2e", () => {
1313
uri,
1414
samplePlugin({
1515
defaultValue: "foo bar",
16-
})
16+
}) as IWrapPackage
1717
)
1818
.build();
1919

packages/templates/polywrap.wasm-assemblyscript-linked.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ project:
44
type: wasm/assemblyscript
55
source:
66
module: ./src/index.ts
7-
schema: ./src/schema.graphql
7+
schema: ./polywrap.graphql
88
extensions:
99
build: ./polywrap.wasm-assemblyscript-linked.build.yaml

packages/templates/polywrap.wasm-rust-linked.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ project:
44
type: wasm/rust
55
source:
66
module: ./Cargo.toml
7-
schema: ./src/schema.graphql
7+
schema: ./polywrap.graphql
88
extensions:
99
build: ./polywrap.wasm-rust-linked.build.yaml

packages/templates/tests.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe("Templates", () => {
3535
/*build: "cargo build",
3636
test: "cargo test",*/
3737
},
38-
interface: { build: "yarn build" },
38+
interface: { build: "npx polywrap build" },
3939
};
4040

4141
// Filter unnecessary directories

packages/templates/wasm/rust/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test": "yarn test:e2e && yarn test:workflow",
1111
"test:e2e": "yarn test:e2e:codegen && jest --passWithNoTests --runInBand --verbose",
1212
"test:e2e:codegen": "npx polywrap codegen -m ./src/__tests__/types/polywrap.app.yaml -g ./src/__tests__/types/wrap",
13-
"test:workflow": "npx polywrap test -o ./workflows/output.json"
13+
"test:workflow": "npx polywrap test"
1414
},
1515
"devDependencies": {
1616
"@types/jest": "26.0.8",

0 commit comments

Comments
 (0)