Skip to content

Commit 81c054e

Browse files
chore(snippets): bump csharp dynamic snippets generator version (#4865)
1 parent 2978523 commit 81c054e

File tree

6 files changed

+45
-15
lines changed

6 files changed

+45
-15
lines changed

packages/fdr-sdk/src/api-definition/snippets/__snapshots__/backfill.test.ts.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ exports[`backfillSnippets > should backfill dynamic snippets for all languages 1
44
{
55
"csharp": [
66
{
7-
"code": "using global::System.Threading.Tasks;
8-
using Cat;
7+
"code": "using Cat;
8+
using System.Threading.Tasks;
99
1010
namespace Usage;
1111
1212
public class Example
1313
{
14-
public async global::System.Threading.Tasks.Task Do() {
14+
public async Task Do() {
1515
var client = new CatcatcatTreeClient(
16-
clientOptions: new ClientOptions{
16+
clientOptions: new ClientOptions {
1717
BaseUrl = "https://api.example.com/v1"
1818
}
1919
);
2020
2121
await client.Users.CreateUserAsync(
22-
new CreateUserRequest{
22+
new CreateUserRequest {
2323
Name = "John Doe",
2424
Email = "[email protected]",
2525
Password = "securePassword123",

packages/fdr-sdk/vitest.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineConfig } from "vitest/config";
2+
3+
export default defineConfig({
4+
test: {
5+
environment: "node",
6+
server: {
7+
deps: {
8+
inline: [/@fern-api/]
9+
}
10+
}
11+
},
12+
resolve: {
13+
conditions: ["node"]
14+
}
15+
});

packages/snippets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"test:update": "vitest --run --passWithNoTests --update"
3030
},
3131
"dependencies": {
32-
"@fern-api/csharp-dynamic-snippets": "0.0.2",
32+
"@fern-api/csharp-dynamic-snippets": "0.0.3",
3333
"@fern-api/dynamic-ir-sdk": "61.4.0",
3434
"@fern-api/go-dynamic-snippets": "0.0.15",
3535
"@fern-api/java-dynamic-snippets": "0.0.4",

packages/snippets/src/__test__/__snapshots__/snippets.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ main();
2929
`;
3030

3131
exports[`Integration Tests > should generate snippets for multiple languages > csharp-snippet 1`] = `
32-
"using global::System.Threading.Tasks;
33-
using Cat;
32+
"using Cat;
33+
using System.Threading.Tasks;
3434
3535
namespace Usage;
3636
3737
public class Example
3838
{
39-
public async global::System.Threading.Tasks.Task Do() {
39+
public async Task Do() {
4040
var client = new CatcatcatTreeClient(
4141
token: "123",
42-
clientOptions: new ClientOptions{
42+
clientOptions: new ClientOptions {
4343
BaseUrl = "https://api.example.com"
4444
}
4545
);

packages/snippets/vitest.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineConfig } from "vitest/config";
2+
3+
export default defineConfig({
4+
test: {
5+
environment: "node",
6+
server: {
7+
deps: {
8+
inline: [/@fern-api/]
9+
}
10+
}
11+
},
12+
resolve: {
13+
conditions: ["node"]
14+
}
15+
});

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)