Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create module tests #1303

Merged
merged 55 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
9017a64
feat(xcontrols): add skeleton (#1278)
mgg709 Sep 13, 2023
02f6f2d
feat(xcontrols): add store module (#1285)
AnaOstio Sep 15, 2023
6534e8f
feat(xcontrols): add actions (#1288)
mgg709 Sep 20, 2023
b52ff8c
feat(xcontrols): add emitter (#1290)
mgg709 Sep 20, 2023
3844630
feat(xcontrols): add experience-controls component (#1297)
AnaOstio Sep 22, 2023
39c73f6
test: test mutations
annacv Sep 25, 2023
62fddd9
feat(experience-controls): tests for the experience-controls componen…
CachedaCodes Sep 26, 2023
7516213
feat: add status mutations to module
annacv Sep 26, 2023
00e5684
test: add fetchMock util + actions test
annacv Sep 26, 2023
13a7269
test: add fetchMock util + actions test
annacv Sep 26, 2023
4ebbaab
feat(xcontrols): add request mapper (#1300)
mgg709 Sep 27, 2023
47c23fa
test: PR comments
annacv Sep 27, 2023
ce7af6f
feat(xcontrols): create response mapper (#1305)
AnaOstio Sep 28, 2023
67653dd
Merge branch 'feature/EMP-1944-create-config-module-xcontrols' of htt…
annacv Sep 29, 2023
2fd6e72
Merge branch 'feature/EMP-1939-create-endpoint-adapter' of https://gi…
annacv Sep 29, 2023
85fde5d
test: PR comments
annacv Oct 2, 2023
347a135
feat(xcontrols): update the xperience-controls module with adapter (#…
AnaOstio Oct 3, 2023
068146f
Merge remote-tracking branch 'origin/main' into feature/EMP-1939-crea…
CachedaCodes Oct 3, 2023
53c0a4f
install missing deps for `x-types`
diegopf Oct 3, 2023
d9ceae5
export `PlatformExperienceControlsRequest`
diegopf Oct 3, 2023
13b9d67
remove unnecessary eslint-disable comment
diegopf Oct 3, 2023
2278faf
refactor `ExperienceControlsRequestMapper` comment
diegopf Oct 3, 2023
5189842
use `ExperienceControlsResponse` type for experienceControlsEndpointA…
diegopf Oct 3, 2023
408c798
change default endpoint for experienceControlsEndpointAdapter
diegopf Oct 3, 2023
9703847
add test for experienceControlsEndpointAdapter
diegopf Oct 3, 2023
173cf6d
extend experienceControlsAdapter to point to test
diegopf Oct 3, 2023
ccc2143
update branch
annacv Oct 3, 2023
feb8138
chore: update import
annacv Oct 3, 2023
168dd72
skip test
diegopf Oct 3, 2023
566e1f8
enable test again
diegopf Oct 3, 2023
966d21f
chore: change object assign to vue set
CachedaCodes Oct 3, 2023
e574c4f
skip test again
CachedaCodes Oct 4, 2023
ef75c33
restore test
CachedaCodes Oct 4, 2023
6d4246f
remove tests from svg package scripts
CachedaCodes Oct 4, 2023
b070a52
Merge branch 'feature/EMP-1939-create-endpoint-adapter' of https://gi…
annacv Oct 4, 2023
1c0ea5e
feat: WIP update tests using Xcontrols adapter
annacv Oct 4, 2023
52614e4
feat: update store Xcontrols util
annacv Oct 5, 2023
c8ee72f
feat: add cancelFetchAndSaveControls in the module actions & types
annacv Oct 5, 2023
3f9e379
test: update tests
annacv Oct 5, 2023
c97e3c4
test: create XControls stub
annacv Oct 5, 2023
2bc91f4
test: add & update tests
annacv Oct 5, 2023
a74248a
chore: rm comment
annacv Oct 5, 2023
41de164
update branch
annacv Oct 5, 2023
5ad9857
feat: add release tag in actions types
annacv Oct 5, 2023
7fa1f35
feat: add getter test
annacv Oct 5, 2023
c4f36d5
Update packages/x-components/src/x-modules/experience-controls/store/…
annacv Oct 9, 2023
33b80f0
Update packages/x-components/src/x-modules/experience-controls/store/…
annacv Oct 9, 2023
0a6ec50
Update packages/x-components/src/x-modules/experience-controls/store/…
annacv Oct 9, 2023
1ccc932
chore: PR changes
annacv Oct 9, 2023
8cc9431
chore: PR changes
annacv Oct 9, 2023
eaf1521
Update packages/x-components/src/x-modules/experience-controls/store/…
annacv Oct 10, 2023
766ffee
Update packages/x-components/src/x-modules/experience-controls/store/…
annacv Oct 10, 2023
c203485
chore: Rollback pnpm-lock.yaml file changes
annacv Oct 10, 2023
c2b8cbe
chore: fix imports
annacv Oct 10, 2023
3cc085d
chore: rm mutations tests
annacv Oct 10, 2023
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 .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

steps:
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/edocs-dynamic-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout X mono-repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get X Components Version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
options: --user 1001

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
options: --user 1001

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
Expand Down
8 changes: 8 additions & 0 deletions packages/deep-merge/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.0.0-alpha.3](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-18)

**Note:** Version bump only for package @empathyco/x-deep-merge





## [2.0.0-alpha.2](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-06-27)

**Note:** Version bump only for package @empathyco/x-deep-merge
Expand Down
4 changes: 2 additions & 2 deletions packages/deep-merge/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@empathyco/x-deep-merge",
"version": "2.0.0-alpha.2",
"version": "2.0.0-alpha.3",
"description": "Utility for deep cloning objects.",
"author": "Empathy Systems Corporation S.L.",
"license": "Apache-2.0",
Expand Down Expand Up @@ -38,7 +38,7 @@
"test-unit": "jest"
},
"dependencies": {
"@empathyco/x-utils": "^1.0.0-alpha.22",
"@empathyco/x-utils": "^1.0.0-alpha.23",
"tslib": "~2.5.0"
},
"devDependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/react-wrapper/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.0.0-alpha.31](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-22)

**Note:** Version bump only for package @empathyco/x-react-wrapper





## [4.0.0-alpha.30](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-06-07)

**Note:** Version bump only for package @empathyco/x-react-wrapper
Expand Down
4 changes: 2 additions & 2 deletions packages/react-wrapper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@empathyco/x-react-wrapper",
"version": "4.0.0-alpha.30",
"version": "4.0.0-alpha.31",
"description": "A proxy that transforms Vue components into React ones",
"author": "Empathy Systems Corporation S.L.",
"license": "Apache-2.0",
Expand Down Expand Up @@ -49,7 +49,7 @@
"@types/jest": "~27.5.0",
"@types/react": "~16.9.0",
"@types/react-dom": "~16.9.0",
"cypress": "~12.13.0",
"cypress": "~13.2.0",
"eslint-plugin-react": "~7.32.1",
"jest": "~27.5.0",
"react": "~16.9.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/x-adapter-platform/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.0-alpha.85](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-18)

**Note:** Version bump only for package @empathyco/x-adapter-platform





## [1.0.0-alpha.84](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-07)


Expand Down
8 changes: 4 additions & 4 deletions packages/x-adapter-platform/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@empathyco/x-adapter-platform",
"version": "1.0.0-alpha.84",
"version": "1.0.0-alpha.85",
"description": "A search client for the Empathy Platform API",
"author": "Empathy Systems Corporation S.L.",
"license": "Apache-2.0",
Expand Down Expand Up @@ -41,9 +41,9 @@
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@empathyco/x-adapter": "^8.0.0-alpha.33",
"@empathyco/x-types": "^10.0.0-alpha.72",
"@empathyco/x-utils": "^1.0.0-alpha.22",
"@empathyco/x-adapter": "^8.0.0-alpha.34",
"@empathyco/x-types": "^10.0.0-alpha.73",
"@empathyco/x-utils": "^1.0.0-alpha.23",
"tslib": "~2.5.0"
},
"devDependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/x-adapter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [8.0.0-alpha.34](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-18)

**Note:** Version bump only for package @empathyco/x-adapter





## [8.0.0-alpha.33](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-08-02)


Expand Down
6 changes: 3 additions & 3 deletions packages/x-adapter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@empathyco/x-adapter",
"version": "8.0.0-alpha.33",
"version": "8.0.0-alpha.34",
"description": "A utils library to create a client for any API",
"author": "Empathy Systems Corporation S.L.",
"license": "Apache-2.0",
Expand Down Expand Up @@ -37,8 +37,8 @@
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@empathyco/x-deep-merge": "^2.0.0-alpha.2",
"@empathyco/x-utils": "^1.0.0-alpha.22",
"@empathyco/x-deep-merge": "^2.0.0-alpha.3",
"@empathyco/x-utils": "^1.0.0-alpha.23",
"tslib": "~2.5.0"
},
"devDependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/x-archetype-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.0-alpha.4](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-18)

**Note:** Version bump only for package @empathyco/x-archetype-utils





## [1.0.0-alpha.3](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-08-09)


Expand Down
6 changes: 3 additions & 3 deletions packages/x-archetype-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@empathyco/x-archetype-utils",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.4",
"description": "Utilities for x-archetype",
"author": "Empathy Systems Corporation S.L.",
"license": "Apache-2.0",
Expand Down Expand Up @@ -36,12 +36,12 @@
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@empathyco/x-deep-merge": "^2.0.0-alpha.2",
"@empathyco/x-deep-merge": "^2.0.0-alpha.3",
"tslib": "~2.5.0",
"vue-i18n": "~8.28.2"
},
"devDependencies": {
"@empathyco/x-utils": "^1.0.0-alpha.22",
"@empathyco/x-utils": "^1.0.0-alpha.23",
"@types/jest": "~27.5.0",
"@types/node": "~18.16.0",
"@vue/test-utils": "~1.0.3",
Expand Down
8 changes: 8 additions & 0 deletions packages/x-bus/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.0-alpha.4](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-18)

**Note:** Version bump only for package @empathyco/x-bus





## [1.0.0-alpha.3](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-06-27)

**Note:** Version bump only for package @empathyco/x-bus
Expand Down
6 changes: 3 additions & 3 deletions packages/x-bus/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@empathyco/x-bus",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.4",
"description": "Event bus to help with events orchestration",
"author": "Empathy Systems Corporation S.L.",
"homepage": "https://github.com/empathyco/x/tree/main/packages/x-bus#readme",
Expand Down Expand Up @@ -39,8 +39,8 @@
"url": "https://github.com/empathyco/x/issues"
},
"dependencies": {
"@empathyco/x-priority-queue": "^1.0.0-alpha.3",
"@empathyco/x-utils": "^1.0.0-alpha.22",
"@empathyco/x-priority-queue": "^1.0.0-alpha.4",
"@empathyco/x-utils": "^1.0.0-alpha.23",
"rxjs": "~7.8.0",
"tslib": "~2.5.0"
},
Expand Down
67 changes: 67 additions & 0 deletions packages/x-components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,73 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [3.0.0-alpha.414](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-22)


### Features

* filter query preview (#1296) ([9543c47](https://github.com/empathyco/x/commit/9543c477cd8a305fd89edb9b24d046c774537c9b))


### Documentation

* **components:** fix column picker vue examples (#1293) ([fa0e817](https://github.com/empathyco/x/commit/fa0e817402261a5e7bddc9af6438ef0b3d1c7448))



## [3.0.0-alpha.413](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-20)


### Features

* add filters to the query preview request (#1292) ([7f20022](https://github.com/empathyco/x/commit/7f20022eee593460681bfb1c4d574162f325cc05))
* **query-preview:** use deep equal to compare request (#1291) ([cf3c3e7](https://github.com/empathyco/x/commit/cf3c3e7c738d8b2281183c42f00048b3bff918ea))



## [3.0.0-alpha.412](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-18)

**Note:** Version bump only for package @empathyco/x-components





## [3.0.0-alpha.411](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-18)

**Note:** Version bump only for package @empathyco/x-components





## [3.0.0-alpha.410](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-15)

### ⚠ BREAKING CHANGES

- **queries-preview**: the `QueryPreviewList` component `queries` prop has changed name to
`queriesPreviewInfo` and the type is an array of `QueryPreviewInfo` as instead of an array of
strings. The QueryPreview component `query` prop has changed name to `queryPreviewInfo` and the
type is `QueryPreviewInfo` instead of `string`. `QueryPreviewInfo` type is now exported from
the module.

EMP-1555

### Features

* **queries-preview**: query preview components allow adding extra params to the request (#1270) ([84143a2](https://github.com/empathyco/x/commit/84143a2b1ee1b9944ddb431f701b3d27d1c20410))



## [3.0.0-alpha.409](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-15)


### Features

* **scroll:** add top offset when automatically scrolling to main-scroll-item (#1277) ([42dc680](https://github.com/empathyco/x/commit/42dc680e3ee3af4ccda6454d967da0750d2bba7e))



## [3.0.0-alpha.408](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2023-09-12)


Expand Down
18 changes: 9 additions & 9 deletions packages/x-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@empathyco/x-components",
"version": "3.0.0-alpha.408",
"version": "3.0.0-alpha.414",
"description": "Empathy X Components",
"author": "Empathy Systems Corporation S.L.",
"license": "Apache-2.0",
Expand Down Expand Up @@ -67,14 +67,14 @@
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@empathyco/x-adapter": "^8.0.0-alpha.33",
"@empathyco/x-adapter-platform": "^1.0.0-alpha.84",
"@empathyco/x-bus": "^1.0.0-alpha.3",
"@empathyco/x-deep-merge": "^2.0.0-alpha.2",
"@empathyco/x-adapter": "^8.0.0-alpha.34",
"@empathyco/x-adapter-platform": "^1.0.0-alpha.85",
"@empathyco/x-bus": "^1.0.0-alpha.4",
"@empathyco/x-deep-merge": "^2.0.0-alpha.3",
"@empathyco/x-logger": "^1.2.0-alpha.11",
"@empathyco/x-storage-service": "^2.0.0-alpha.15",
"@empathyco/x-types": "^10.0.0-alpha.72",
"@empathyco/x-utils": "^1.0.0-alpha.22",
"@empathyco/x-types": "^10.0.0-alpha.73",
"@empathyco/x-utils": "^1.0.0-alpha.23",
"@vue/devtools-api": "~6.5.0",
"@vueuse/core": "~10.1.0",
"rxjs": "~7.8.0",
Expand All @@ -92,7 +92,7 @@
"@badeball/cypress-cucumber-preprocessor": "~17.2.0",
"@bahmutov/cypress-esbuild-preprocessor": "~2.2.0",
"@cypress/vue2": "~2.0.1",
"@empathyco/x-tailwindcss": "^1.0.0-alpha.34",
"@empathyco/x-tailwindcss": "^1.0.0-alpha.35",
"@microsoft/api-documenter": "~7.22.0",
"@microsoft/api-extractor": "~7.35.0",
"@rollup/plugin-commonjs": "~25.0.0",
Expand All @@ -110,7 +110,7 @@
"@vue/vue2-jest": "~27.0.0-alpha.3",
"autoprefixer": "~10.4.4",
"convert-source-map": "~2.0.0",
"cypress": "~12.13.0",
"cypress": "~13.2.0",
"esbuild": "0.17.19",
"glob": "~10.2.0",
"jest": "~27.5.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { deepMerge } from '@empathyco/x-deep-merge';
import { SemanticQueriesResponse, SemanticQuery } from '@empathyco/x-types';
import { DeepPartial } from '@empathyco/x-utils/src/types/utils.types';
import { DeepPartial } from '@empathyco/x-utils';

/**
* Creates a {@link SemanticQuery} stub with the provided options.
Expand Down
Loading
Loading