You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I.e. the very basic display of what this PR is meant to change. Follow
up commits will cover the faker side of things, and possibly other
config permutations.
Copy file name to clipboardExpand all lines: tests/scalars/__snapshots__/spec.ts.snap
+63-4Lines changed: 63 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
-
exports[`custom scalar generation for native and custom types using casual should generate custom scalars for native and custom types using casual 1`] =`
3
+
exports[`Custom scalar generation using casual should generate custom scalars for native and custom types 1`] =`
4
4
"
5
5
export const anA = (overrides?: Partial<A>): A => {
6
6
return {
@@ -27,7 +27,7 @@ export const aC = (overrides?: Partial<C>): C => {
27
27
"
28
28
`;
29
29
30
-
exports[`custom scalar generation for native and custom types using casual should generate dynamic custom scalars for native and custom types using casual 1`] = `
30
+
exports[`Custom scalar generation using casual should generate dynamic custom scalars for native and custom types 1`] = `
exports[`custom scalar generation for native and custom types using faker should generate custom scalars for native and custom types using faker 1`] = `
62
+
exports[`Custom scalar generation using casual with different input/output configurations should generate distinct custom scalars for native and custom input/output types 1`] = `
63
+
"
64
+
export const anA = (overrides?: Partial<A>): A => {
export const aC = (overrides?: Partial<C>): C => {
82
+
return {
83
+
anyObject: overrides&&overrides.hasOwnProperty('anyObject') ?overrides.anyObject!:'itaque distinctio iure molestias voluptas reprehenderit quos',
84
+
};
85
+
};
86
+
"
87
+
`;
88
+
89
+
exports[`Custom scalar generation using casual with different input/output configurations should generate distinct dynamic custom scalars for native and custom types 1`] = `
90
+
"import casual from 'casual';
91
+
92
+
casual.seed(0);
93
+
94
+
export const anA = (overrides?: Partial<A>): A => {
exports[`custom scalar generation using faker should generate custom scalars for native and custom types 1`] = `
63
122
"
64
123
export const anA = (overrides?: Partial<A>): A => {
65
124
return {
@@ -86,7 +145,7 @@ export const aC = (overrides?: Partial<C>): C => {
86
145
"
87
146
`;
88
147
89
-
exports[`custom scalar generation for native and custom types using faker should generate dynamic custom scalars for native and custom types using faker 1`] = `
148
+
exports[`custom scalar generation using faker should generate dynamic custom scalars for native and custom types 1`] = `
0 commit comments