Skip to content

Commit

Permalink
Version 2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zihejia committed Mar 1, 2024
1 parent 21eab02 commit fbbdc64
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 60 deletions.
12 changes: 8 additions & 4 deletions __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test(`it calls MixpanelReactNative initialize`, async () => {
"token",
true,
false,
{$lib_version: "2.4.0", mp_lib: "react-native"},
{$lib_version: expect.any(String), mp_lib: "react-native"},
"https://api.mixpanel.com"
);
});
Expand All @@ -24,7 +24,11 @@ test(`it calls MixpanelReactNative initialize with optOut and superProperties`,
"token",
true,
true,
{$lib_version: "2.4.0", mp_lib: "react-native", super: "property"},
{
$lib_version: expect.any(String),
mp_lib: "react-native",
super: "property",
},
"https://api.mixpanel.com"
);
});
Expand Down Expand Up @@ -117,7 +121,7 @@ test(`it calls MixpanelReactNative track`, async () => {
"event name",
{
"Cool Property": "Property Value",
$lib_version: "2.4.0",
$lib_version: expect.any(String),
mp_lib: "react-native",
}
);
Expand All @@ -133,7 +137,7 @@ test(`it calls MixpanelReactNative trackWithGroups`, async () => {
expect(NativeModules.MixpanelReactNative.trackWithGroups).toBeCalledWith(
"token",
"tracked with groups",
{a: 1, b: 2.3, $lib_version: "2.4.0", mp_lib: "react-native"},
{a: 1, b: 2.3, $lib_version: expect.any(String), mp_lib: "react-native"},
{company_id: "Mixpanel"}
);
});
Expand Down
112 changes: 56 additions & 56 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
{
"name": "mixpanel-react-native",
"version": "2.4.0",
"description": "Official React Native Tracking Library for Mixpanel Analytics",
"main": "index.js",
"scripts": {
"test": "jest"
},
"author": "Mixpanel",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/mixpanel/mixpanel-react-native.git"
},
"keywords": [
"mixpanel",
"react",
"native",
"ios",
"android",
"analytics",
"tracking",
"sdk"
"name": "mixpanel-react-native",
"version": "2.4.1",
"description": "Official React Native Tracking Library for Mixpanel Analytics",
"main": "index.js",
"scripts": {
"test": "jest"
},
"author": "Mixpanel",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/mixpanel/mixpanel-react-native.git"
},
"keywords": [
"mixpanel",
"react",
"native",
"ios",
"android",
"analytics",
"tracking",
"sdk"
],
"bugs": {
"url": "https://github.com/mixpanel/mixpanel-react-native/issues"
},
"TODO": "Change the git URL before publishing on npm",
"homepage": "https://github.com/mixpanel/mixpanel-react-native#readme",
"metadata": {
"mp_lib": "react-native"
},
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/runtime": "^7.12.1",
"@react-native-community/eslint-config": "^2.0.0",
"babel-jest": "^26.6.0",
"eslint": "^7.11.0",
"jest": "^26.6.0",
"metro-react-native-babel-preset": "^0.63.0",
"react-test-renderer": "16.13.1",
"react-native": "^0.63.3"
},
"jest": {
"modulePathIgnorePatterns": [
"<rootDir>/MixpanelDemo/"
],
"bugs": {
"url": "https://github.com/mixpanel/mixpanel-react-native/issues"
},
"TODO": "Change the git URL before publishing on npm",
"homepage": "https://github.com/mixpanel/mixpanel-react-native#readme",
"metadata": {
"mp_lib": "react-native"
},
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/runtime": "^7.12.1",
"@react-native-community/eslint-config": "^2.0.0",
"babel-jest": "^26.6.0",
"eslint": "^7.11.0",
"jest": "^26.6.0",
"metro-react-native-babel-preset": "^0.63.0",
"react-test-renderer": "16.13.1",
"react-native": "^0.63.3"
},
"jest": {
"modulePathIgnorePatterns": [
"<rootDir>/MixpanelDemo/"
],
"testMatch": [
"<rootDir>/__tests__/index.test.js"
],
"setupFiles": [
"<rootDir>/__tests__/jest_setup.js"
],
"verbose": true,
"preset": "react-native",
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
}
"testMatch": [
"<rootDir>/__tests__/index.test.js"
],
"setupFiles": [
"<rootDir>/__tests__/jest_setup.js"
],
"verbose": true,
"preset": "react-native",
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
}
}
}

0 comments on commit fbbdc64

Please sign in to comment.