@efaj/pulumi-dynamic-stripe 0.1.0-252fa04 → 0.1.0-37d58f3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/tests/integration.test.ts +17 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@efaj/pulumi-dynamic-stripe",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-37d58f3",
|
|
4
4
|
"description": "A Pulumi Dynamic Provider for Stripe, supporting modern features like Payment Links.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@biomejs/biome": "2.5.11",
|
|
37
37
|
"@types/node": "^26.4.0",
|
|
38
|
-
"typescript": "^
|
|
38
|
+
"typescript": "^5.9.3",
|
|
39
39
|
"vite": "^6.4.3",
|
|
40
40
|
"vitest": "^3.2.7"
|
|
41
41
|
}
|
|
@@ -15,21 +15,24 @@ describe("Pulumi Dynamic Provider Serialization", () => {
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
//
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
// Create a temporary stack using the inline program
|
|
19
|
+
const stack = await LocalWorkspace.createOrSelectStack(
|
|
20
|
+
{
|
|
21
|
+
stackName: "test-stack",
|
|
22
|
+
projectName: "pulumi-dynamic-stripe-test",
|
|
23
|
+
program,
|
|
24
24
|
},
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
{
|
|
26
|
+
envVars: {
|
|
27
|
+
PULUMI_CONFIG_PASSPHRASE: "test", // Required for local backends in non-interactive CI
|
|
28
|
+
},
|
|
29
|
+
projectSettings: {
|
|
30
|
+
name: "pulumi-dynamic-stripe-test",
|
|
31
|
+
runtime: "nodejs",
|
|
32
|
+
backend: { url: "file://~" }, // Use local state
|
|
33
|
+
},
|
|
27
34
|
},
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
// Create a temporary stack
|
|
32
|
-
const stack = await workspace.createStack("test-stack");
|
|
35
|
+
);
|
|
33
36
|
|
|
34
37
|
// Run a preview
|
|
35
38
|
// During preview, the dynamic provider closure is serialized and sent to the Pulumi engine.
|
|
@@ -40,7 +43,7 @@ describe("Pulumi Dynamic Provider Serialization", () => {
|
|
|
40
43
|
expect(preview.stdout).toBeDefined();
|
|
41
44
|
} finally {
|
|
42
45
|
// Clean up the temporary stack
|
|
43
|
-
await workspace.removeStack("test-stack");
|
|
46
|
+
await stack.workspace.removeStack("test-stack");
|
|
44
47
|
}
|
|
45
48
|
}, 30000); // 30 second timeout since Pulumi engine startup can take a few seconds
|
|
46
49
|
});
|