Skip to content

Commit

Permalink
Amir/CRO-59-Virtual-Signup-Tracking-Flow (deriv-com#10735)
Browse files Browse the repository at this point in the history
* feat: setup cro virtual signup tracking flow

* fix: update analytics package on core

* fix: types on trader package

* chore: updaete package-lock

* chore: update analytics package

* chore: update track calls

* chore: migrate rudderstack track to analytics

* chore: update types for analytics

* chore: update track calls

* chore: update analytics package

* fix: type errors on contract type

* chore: add analytics initialization

* chore: update package version

* fix: type error on trade-store

* fix: failing coverall pipeline

* chore: update package version

* chore: use identify event for identity tracking
  • Loading branch information
amir-deriv authored Oct 27, 2023
1 parent aa69bf4 commit 29d3c01
Show file tree
Hide file tree
Showing 34 changed files with 1,203 additions and 1,369 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ jobs:
run: npx tsc --project packages/hooks/tsconfig.json -noEmit
- name: Check TypeScript for @deriv/utils
run: npx tsc --project packages/utils/tsconfig.json -noEmit
- name: Check TypeScript for @deriv/analytics
run: npx tsc --project packages/analytics/tsconfig.json -noEmit
- name: Check TypeScript for @deriv/stores
run: npx tsc --project packages/stores/tsconfig.json -noEmit
- name: Check TypeScript for @deriv/wallets
Expand All @@ -43,7 +41,5 @@ jobs:
run: bash ./scripts/check-tests.sh packages/hooks/src
- name: Check tests for @deriv/utils
run: bash ./scripts/check-tests.sh packages/utils/src
- name: Check tests for @deriv/analytics
run: bash ./scripts/check-tests.sh packages/analytics/src
- name: Run tests
run: npm run test:ci
8 changes: 8 additions & 0 deletions __mocks__/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ jest.mock('copy-anything', () => ({
copy: jest.fn(),
}));

jest.mock('@deriv/analytics', () => ({
Analytics: {
trackEvent: jest.fn(),
pageView: jest.fn(),
reset: jest.fn(),
},
}));

const mock_onfido = {
init: jest.fn().mockResolvedValue({}),
};
Expand Down
1,875 changes: 1,015 additions & 860 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
},
"dependencies": {
"@babel/preset-typescript": "^7.16.5",
"@deriv/analytics": "^1.3.4",
"@sendbird/chat": "^4.9.7",
"@types/react-transition-group": "^4.4.4",
"babel-jest": "^27.3.1",
Expand Down
5 changes: 0 additions & 5 deletions packages/analytics/jest.config.js

This file was deleted.

13 changes: 0 additions & 13 deletions packages/analytics/package.json

This file was deleted.

37 changes: 0 additions & 37 deletions packages/analytics/src/Constants/rudderstack-events.ts

This file was deleted.

65 changes: 0 additions & 65 deletions packages/analytics/src/__tests__/rudderstack.spec.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions packages/analytics/src/index.ts

This file was deleted.

Loading

0 comments on commit 29d3c01

Please sign in to comment.