Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/paginator/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ node_modules
build
package-lock.json
docs/
.coverage
coverage/
__pycache__
.DS_Store
24 changes: 0 additions & 24 deletions core/paginator/.nycrc

This file was deleted.

32 changes: 15 additions & 17 deletions core/paginator/.mocharc.js → core/paginator/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,24 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
const config = {
"enable-source-maps": true,
"throw-deprecation": true,
"timeout": 10000,
"recursive": true
}
if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
delete config['throw-deprecation'];
}
if (process.env.MOCHA_REPORTER) {
config.reporter = process.env.MOCHA_REPORTER;
}
if (process.env.MOCHA_REPORTER_OUTPUT) {
config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
}
module.exports = config

module.exports = {
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: 'tsconfig.json',
},
],
},
clearMocks: true,
testMatch: ['**/test/*.ts'],
modulePathIgnorePatterns: ['<rootDir>/build'],
};
Comment thread
pearigee marked this conversation as resolved.
13 changes: 4 additions & 9 deletions core/paginator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/googleapis/google-cloud-node.git"
},
"scripts": {
"test": "c8 mocha build/test",
"test": "jest --coverage",
"compile": "tsc -p .",
"fix": "gts fix",
"lint": "gts check",
Expand All @@ -33,22 +33,17 @@
"license": "Apache-2.0",
"devDependencies": {
"@types/extend": "^3.0.4",
"@types/mocha": "^10.0.10",
"@types/jest": "^30.0.0",
"@types/node": "^22.13.8",
"@types/proxyquire": "^1.3.31",
"@types/sinon": "^17.0.4",
"@types/uuid": "^10.0.0",
"c8": "^10.1.3",
"codecov": "^3.8.3",
"gts": "^6.0.2",
"jest": "^30.4.2",
"jsdoc": "^4.0.4",
"jsdoc-fresh": "^3.0.0",
"jsdoc-region-tag": "^3.0.0",
"linkinator": "^6.1.2",
"mocha": "^11.1.0",
"path-to-regexp": "^8.2.0",
"proxyquire": "^2.1.3",
"sinon": "^19.0.2",
"ts-jest": "^29.4.10",
"typescript": "^5.8.2",
"uuid": "^11.1.0"
},
Expand Down
Loading
Loading