Skip to content

Commit

Permalink
Migrate to jest-specific-snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
miles170 committed Sep 23, 2022
1 parent 90f922e commit 95a911d
Show file tree
Hide file tree
Showing 96 changed files with 7,860 additions and 7,046 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Expand Up @@ -4,4 +4,4 @@ types/
/test/restDocs/*.json
/test/restDocs/results/
/test/restDocs/snapshots/
jest*.config.js
/jest*.config.js
547 changes: 547 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -44,6 +44,7 @@
"@types/dot": "^1.1.5",
"@types/gapi.client.discovery": "^1.0.8",
"@types/jest": "^29.0.3",
"@types/jest-specific-snapshot": "^0.5.6",
"@types/lodash": "^4.14.185",
"@types/n-readlines": "^1.0.3",
"@types/node": "^18.7.18",
Expand All @@ -62,6 +63,7 @@
"hpagent": "^1.0.0",
"jest": "^29.0.3",
"jest-resolve": "^28.1.3",
"jest-specific-snapshot": "^5.0.0",
"lodash": "^4.17.21",
"n-readlines": "^1.0.1",
"nock": "^13.2.9",
Expand Down
@@ -1,4 +1,7 @@
// Type definitions for non-npm package Admin SDK API directory_v1 0.0
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`admin DT works: admin DT works 1`] = `
"// Type definitions for non-npm package Admin SDK API directory_v1 0.0
// Project: https://developers.google.com/admin-sdk/
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
// Nick Amoscato <https://github.com/namoscato>
Expand All @@ -8,4 +11,6 @@
// Referenced type definitions are generated by https://github.com/Maxim-Mazurok/google-api-typings-generator
// In case of any problems please open issue in https://github.com/Maxim-Mazurok/google-api-typings-generator/issues/new

/// <reference types="@maxim_mazurok/gapi.client.admin-directory_v1" />
/// <reference types=\\"@maxim_mazurok/gapi.client.admin-directory_v1\\" />
"
`;

This file was deleted.

@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`admin DT works: admin DT works 1`] = `
"{
\\"private\\": true,
\\"dependencies\\": {
\\"@maxim_mazurok/gapi.client.admin-directory_v1\\": \\"latest\\"
}
}
"
`;

This file was deleted.

@@ -0,0 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`admin DT works: admin DT works 1`] = `
"{
\\"compilerOptions\\": {
\\"module\\": \\"commonjs\\",
\\"lib\\": [\\"es6\\"],
\\"noImplicitAny\\": true,
\\"noImplicitThis\\": true,
\\"strictNullChecks\\": true,
\\"strictFunctionTypes\\": true,
\\"noEmit\\": true,
\\"forceConsistentCasingInFileNames\\": true,
\\"baseUrl\\": \\"../\\",
\\"typeRoots\\": [\\"../\\"],
\\"types\\": []
},
\\"files\\": [\\"index.d.ts\\"]
}
"
`;

This file was deleted.

@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`admin DT works: admin DT works 1`] = `
"{
\\"extends\\": \\"@definitelytyped/dtslint/dt.json\\",
\\"rules\\": {
\\"npm-naming\\": false
}
}
"
`;
@@ -1,4 +1,7 @@
// Type definitions for non-npm package Calendar API v3 0.0
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`calendar DT works: calendar DT works 1`] = `
"// Type definitions for non-npm package Calendar API v3 0.0
// Project: https://developers.google.com/google-apps/calendar/firstapp
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
// Nick Amoscato <https://github.com/namoscato>
Expand All @@ -8,4 +11,6 @@
// Referenced type definitions are generated by https://github.com/Maxim-Mazurok/google-api-typings-generator
// In case of any problems please open issue in https://github.com/Maxim-Mazurok/google-api-typings-generator/issues/new

/// <reference types="@maxim_mazurok/gapi.client.calendar-v3" />
/// <reference types=\\"@maxim_mazurok/gapi.client.calendar-v3\\" />
"
`;

This file was deleted.

@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`calendar DT works: calendar DT works 1`] = `
"{
\\"private\\": true,
\\"dependencies\\": {
\\"@maxim_mazurok/gapi.client.calendar-v3\\": \\"latest\\"
}
}
"
`;
16 changes: 0 additions & 16 deletions test/restDocs/snapshots/dt/gapi.client.calendar-v3/tsconfig.json

This file was deleted.

@@ -0,0 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`calendar DT works: calendar DT works 1`] = `
"{
\\"compilerOptions\\": {
\\"module\\": \\"commonjs\\",
\\"lib\\": [\\"es6\\"],
\\"noImplicitAny\\": true,
\\"noImplicitThis\\": true,
\\"strictNullChecks\\": true,
\\"strictFunctionTypes\\": true,
\\"noEmit\\": true,
\\"forceConsistentCasingInFileNames\\": true,
\\"baseUrl\\": \\"../\\",
\\"typeRoots\\": [\\"../\\"],
\\"types\\": []
},
\\"files\\": [\\"index.d.ts\\"]
}
"
`;

This file was deleted.

@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`calendar DT works: calendar DT works 1`] = `
"{
\\"extends\\": \\"@definitelytyped/dtslint/dt.json\\",
\\"rules\\": {
\\"npm-naming\\": false
}
}
"
`;
@@ -1,4 +1,7 @@
// Type definitions for non-npm package Drive API v3 0.0
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`drive DT works: drive DT works 1`] = `
"// Type definitions for non-npm package Drive API v3 0.0
// Project: https://developers.google.com/drive/
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
// Nick Amoscato <https://github.com/namoscato>
Expand All @@ -8,4 +11,6 @@
// Referenced type definitions are generated by https://github.com/Maxim-Mazurok/google-api-typings-generator
// In case of any problems please open issue in https://github.com/Maxim-Mazurok/google-api-typings-generator/issues/new

/// <reference types="@maxim_mazurok/gapi.client.drive-v3" />
/// <reference types=\\"@maxim_mazurok/gapi.client.drive-v3\\" />
"
`;
6 changes: 0 additions & 6 deletions test/restDocs/snapshots/dt/gapi.client.drive-v3/package.json

This file was deleted.

11 changes: 11 additions & 0 deletions test/restDocs/snapshots/dt/gapi.client.drive-v3/package.json.shot
@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`drive DT works: drive DT works 1`] = `
"{
\\"private\\": true,
\\"dependencies\\": {
\\"@maxim_mazurok/gapi.client.drive-v3\\": \\"latest\\"
}
}
"
`;
16 changes: 0 additions & 16 deletions test/restDocs/snapshots/dt/gapi.client.drive-v3/tsconfig.json

This file was deleted.

21 changes: 21 additions & 0 deletions test/restDocs/snapshots/dt/gapi.client.drive-v3/tsconfig.json.shot
@@ -0,0 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`drive DT works: drive DT works 1`] = `
"{
\\"compilerOptions\\": {
\\"module\\": \\"commonjs\\",
\\"lib\\": [\\"es6\\"],
\\"noImplicitAny\\": true,
\\"noImplicitThis\\": true,
\\"strictNullChecks\\": true,
\\"strictFunctionTypes\\": true,
\\"noEmit\\": true,
\\"forceConsistentCasingInFileNames\\": true,
\\"baseUrl\\": \\"../\\",
\\"typeRoots\\": [\\"../\\"],
\\"types\\": []
},
\\"files\\": [\\"index.d.ts\\"]
}
"
`;
6 changes: 0 additions & 6 deletions test/restDocs/snapshots/dt/gapi.client.drive-v3/tslint.json

This file was deleted.

11 changes: 11 additions & 0 deletions test/restDocs/snapshots/dt/gapi.client.drive-v3/tslint.json.shot
@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`drive DT works: drive DT works 1`] = `
"{
\\"extends\\": \\"@definitelytyped/dtslint/dt.json\\",
\\"rules\\": {
\\"npm-naming\\": false
}
}
"
`;
@@ -1,4 +1,7 @@
// Type definitions for non-npm package Google Sheets API v4 0.0
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`sheets DT works: sheets DT works 1`] = `
"// Type definitions for non-npm package Google Sheets API v4 0.0
// Project: https://developers.google.com/sheets/
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
// Nick Amoscato <https://github.com/namoscato>
Expand All @@ -8,4 +11,6 @@
// Referenced type definitions are generated by https://github.com/Maxim-Mazurok/google-api-typings-generator
// In case of any problems please open issue in https://github.com/Maxim-Mazurok/google-api-typings-generator/issues/new

/// <reference types="@maxim_mazurok/gapi.client.sheets-v4" />
/// <reference types=\\"@maxim_mazurok/gapi.client.sheets-v4\\" />
"
`;
6 changes: 0 additions & 6 deletions test/restDocs/snapshots/dt/gapi.client.sheets-v4/package.json

This file was deleted.

11 changes: 11 additions & 0 deletions test/restDocs/snapshots/dt/gapi.client.sheets-v4/package.json.shot
@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`sheets DT works: sheets DT works 1`] = `
"{
\\"private\\": true,
\\"dependencies\\": {
\\"@maxim_mazurok/gapi.client.sheets-v4\\": \\"latest\\"
}
}
"
`;
16 changes: 0 additions & 16 deletions test/restDocs/snapshots/dt/gapi.client.sheets-v4/tsconfig.json

This file was deleted.

@@ -0,0 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`sheets DT works: sheets DT works 1`] = `
"{
\\"compilerOptions\\": {
\\"module\\": \\"commonjs\\",
\\"lib\\": [\\"es6\\"],
\\"noImplicitAny\\": true,
\\"noImplicitThis\\": true,
\\"strictNullChecks\\": true,
\\"strictFunctionTypes\\": true,
\\"noEmit\\": true,
\\"forceConsistentCasingInFileNames\\": true,
\\"baseUrl\\": \\"../\\",
\\"typeRoots\\": [\\"../\\"],
\\"types\\": []
},
\\"files\\": [\\"index.d.ts\\"]
}
"
`;
6 changes: 0 additions & 6 deletions test/restDocs/snapshots/dt/gapi.client.sheets-v4/tslint.json

This file was deleted.

11 changes: 11 additions & 0 deletions test/restDocs/snapshots/dt/gapi.client.sheets-v4/tslint.json.shot
@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`sheets DT works: sheets DT works 1`] = `
"{
\\"extends\\": \\"@definitelytyped/dtslint/dt.json\\",
\\"rules\\": {
\\"npm-naming\\": false
}
}
"
`;

0 comments on commit 95a911d

Please sign in to comment.