diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7167e84be..180d1d7a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,7 +96,9 @@ jobs: node-version: ${{ matrix.NODE_VERSION }} cache: npm - run: npm ci - - run: npm test -- --maxWorkers=4 + # Run unit tests + - run: npm test -- --maxWorkers=4 + # Run integration tests - run: npm run test:mongodb env: CI: true diff --git a/eslint.config.js b/eslint.config.js index f9288e06d..401c22578 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -24,7 +24,6 @@ module.exports = tseslint.config({ "no-useless-escape": "off", "no-var": "error", "no-console": 0, - "no-prototype-builtins": "off", "require-atomic-updates": "off", "prefer-spread": "off", "prefer-rest-params": "off", diff --git a/integration/test/ParseUserTest.js b/integration/test/ParseUserTest.js index 13718e2e7..931c013ac 100644 --- a/integration/test/ParseUserTest.js +++ b/integration/test/ParseUserTest.js @@ -598,8 +598,8 @@ describe('Parse User', () => { }) .then(() => { assert.equal(Object.keys(user.attributes).length, 5); - assert(user.attributes.hasOwnProperty('username')); - assert(user.attributes.hasOwnProperty('email')); + assert(Object.hasOwn(user.attributes, 'username')); + assert(Object.hasOwn(user.attributes, 'email')); return user.destroy(); }) .then(() => { diff --git a/src/Cloud.ts b/src/Cloud.ts index 83ce78c59..32678ddd0 100644 --- a/src/Cloud.ts +++ b/src/Cloud.ts @@ -26,30 +26,22 @@ import type { RequestOptions } from './RESTController'; * @param {string} name The function name. * @param {object} data The parameters to send to the cloud function. * @param {object} options + * Valid options are:
Parse.Object
.
* @param {object} options
+ * Valid options are:Parse.Object
.
* @param {object} options
+ * Valid options are:Parse.Object
.
* @param {object} options
+ * Valid options are:
+ * A username and password must be set before calling logIn.
* * @param {object} options + * Valid options are:Parse.Object
.
* @param {object} options
+ * Valid options are:Parse.Object
.
* @param {object} options
+ * Valid options are:Parse.Object
.
* @param {object} options
+ * Valid options are:
+ * A username and password must be set before calling logIn.
* * @param {object} options + * Valid options are: