From cb3c0a041f7bc3d94ce163cae5bcb2f446756948 Mon Sep 17 00:00:00 2001 From: Regev Brody Date: Sat, 13 May 2023 12:26:32 +0300 Subject: [PATCH] fix tests (#9) --- .github/workflows/ci-publish.yml | 2 +- .github/workflows/ci.yml | 10 ++++++++-- package.json | 1 + src/objects/serverside/server-event.js | 2 +- yarn.lock | 15 ++++----------- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci-publish.yml b/.github/workflows/ci-publish.yml index 7873e73d..a2129588 100644 --- a/.github/workflows/ci-publish.yml +++ b/.github/workflows/ci-publish.yml @@ -15,7 +15,7 @@ jobs: node-version: 18 - name: Deploy run: | - yarn install --ignore-engines + yarn install npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" npm publish env: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2913a33b..84ded026 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,13 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: yarn install --ignore-engines - - run: npm run flow + - run: yarn install + - run: yarn flow + env: + CI: true + - run: yarn build + env: + CI: true + - run: yarn test env: CI: true diff --git a/package.json b/package.json index 99ba8493..cb848a18 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,7 @@ "prepublish": "gulp dist", "start": "semistandard --fix", "flow": "flow", + "build": "gulp dist", "test": "jest" }, "main": "./dist/cjs.js", diff --git a/src/objects/serverside/server-event.js b/src/objects/serverside/server-event.js index 82f38168..069f3f68 100644 --- a/src/objects/serverside/server-event.js +++ b/src/objects/serverside/server-event.js @@ -377,7 +377,7 @@ export default class ServerEvent { /** * Sets the advanced_measurement_table for the current event. - * @param {string} advanced_measurement_table Name of Advanced Measurement table. Only used for the Advanced Measurement API in the Advanced Analytics product. + * @param {number} data_processing_options_state Name of Advanced Measurement table. Only used for the Advanced Measurement API in the Advanced Analytics product. */ set advanced_measurement_table(advanced_measurement_table: string) { this._advanced_measurement_table = advanced_measurement_table; diff --git a/yarn.lock b/yarn.lock index 2e39eafa..40c875f0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5010,12 +5010,10 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -iso-3166-1-alpha-2@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/iso-3166-1-alpha-2/-/iso-3166-1-alpha-2-1.0.0.tgz#bc9e0bb94e584df5468a932997a28552e26f97ac" - integrity sha512-ffnjHqGTL67bPVuOf7NNl7NhPABR1Dfoue+tXMCSzyBbfmwo2Y2Xve9nL3zZZ8YXhV9H7yL1u+HDeuJd8aft0Q== - dependencies: - mout "^0.11.0" +iso-3166-1@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/iso-3166-1/-/iso-3166-1-2.1.1.tgz#79b80d2aebc3c9528d792bdbb8316c912fe37c68" + integrity sha512-RZxXf8cw5Y8LyHZIwIRvKw8sWTIHh2/txBT+ehO0QroesVfnz3JNFFX4i/OC/Yuv2bDIVYrHna5PMvjtpefq5w== isobject@^2.0.0: version "2.1.0" @@ -6181,11 +6179,6 @@ mkdirp@^0.5.0, mkdirp@^0.5.1: dependencies: minimist "^1.2.6" -mout@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/mout/-/mout-0.11.1.tgz#ba3611df5f0e5b1ffbfd01166b8f02d1f5fa2b99" - integrity sha512-pK9VNiLE3QgGBrC/3ICAscwOLU7oTNeK2l32uqNAioBYtB2tQAfSsGDNChUlk7CP23126mc5lUt6+na9FlN8JA== - ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"