Skip to content

Commit fbbdc64

Browse files
committed
Version 2.4.1
1 parent 21eab02 commit fbbdc64

File tree

2 files changed

+64
-60
lines changed

2 files changed

+64
-60
lines changed

__tests__/index.test.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test(`it calls MixpanelReactNative initialize`, async () => {
1212
"token",
1313
true,
1414
false,
15-
{$lib_version: "2.4.0", mp_lib: "react-native"},
15+
{$lib_version: expect.any(String), mp_lib: "react-native"},
1616
"https://api.mixpanel.com"
1717
);
1818
});
@@ -24,7 +24,11 @@ test(`it calls MixpanelReactNative initialize with optOut and superProperties`,
2424
"token",
2525
true,
2626
true,
27-
{$lib_version: "2.4.0", mp_lib: "react-native", super: "property"},
27+
{
28+
$lib_version: expect.any(String),
29+
mp_lib: "react-native",
30+
super: "property",
31+
},
2832
"https://api.mixpanel.com"
2933
);
3034
});
@@ -117,7 +121,7 @@ test(`it calls MixpanelReactNative track`, async () => {
117121
"event name",
118122
{
119123
"Cool Property": "Property Value",
120-
$lib_version: "2.4.0",
124+
$lib_version: expect.any(String),
121125
mp_lib: "react-native",
122126
}
123127
);
@@ -133,7 +137,7 @@ test(`it calls MixpanelReactNative trackWithGroups`, async () => {
133137
expect(NativeModules.MixpanelReactNative.trackWithGroups).toBeCalledWith(
134138
"token",
135139
"tracked with groups",
136-
{a: 1, b: 2.3, $lib_version: "2.4.0", mp_lib: "react-native"},
140+
{a: 1, b: 2.3, $lib_version: expect.any(String), mp_lib: "react-native"},
137141
{company_id: "Mixpanel"}
138142
);
139143
});

package.json

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
11
{
2-
"name": "mixpanel-react-native",
3-
"version": "2.4.0",
4-
"description": "Official React Native Tracking Library for Mixpanel Analytics",
5-
"main": "index.js",
6-
"scripts": {
7-
"test": "jest"
8-
},
9-
"author": "Mixpanel",
10-
"license": "Apache-2.0",
11-
"repository": {
12-
"type": "git",
13-
"url": "git+https://github.com/mixpanel/mixpanel-react-native.git"
14-
},
15-
"keywords": [
16-
"mixpanel",
17-
"react",
18-
"native",
19-
"ios",
20-
"android",
21-
"analytics",
22-
"tracking",
23-
"sdk"
2+
"name": "mixpanel-react-native",
3+
"version": "2.4.1",
4+
"description": "Official React Native Tracking Library for Mixpanel Analytics",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "jest"
8+
},
9+
"author": "Mixpanel",
10+
"license": "Apache-2.0",
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/mixpanel/mixpanel-react-native.git"
14+
},
15+
"keywords": [
16+
"mixpanel",
17+
"react",
18+
"native",
19+
"ios",
20+
"android",
21+
"analytics",
22+
"tracking",
23+
"sdk"
24+
],
25+
"bugs": {
26+
"url": "https://github.com/mixpanel/mixpanel-react-native/issues"
27+
},
28+
"TODO": "Change the git URL before publishing on npm",
29+
"homepage": "https://github.com/mixpanel/mixpanel-react-native#readme",
30+
"metadata": {
31+
"mp_lib": "react-native"
32+
},
33+
"devDependencies": {
34+
"@babel/core": "^7.12.3",
35+
"@babel/runtime": "^7.12.1",
36+
"@react-native-community/eslint-config": "^2.0.0",
37+
"babel-jest": "^26.6.0",
38+
"eslint": "^7.11.0",
39+
"jest": "^26.6.0",
40+
"metro-react-native-babel-preset": "^0.63.0",
41+
"react-test-renderer": "16.13.1",
42+
"react-native": "^0.63.3"
43+
},
44+
"jest": {
45+
"modulePathIgnorePatterns": [
46+
"<rootDir>/MixpanelDemo/"
2447
],
25-
"bugs": {
26-
"url": "https://github.com/mixpanel/mixpanel-react-native/issues"
27-
},
28-
"TODO": "Change the git URL before publishing on npm",
29-
"homepage": "https://github.com/mixpanel/mixpanel-react-native#readme",
30-
"metadata": {
31-
"mp_lib": "react-native"
32-
},
33-
"devDependencies": {
34-
"@babel/core": "^7.12.3",
35-
"@babel/runtime": "^7.12.1",
36-
"@react-native-community/eslint-config": "^2.0.0",
37-
"babel-jest": "^26.6.0",
38-
"eslint": "^7.11.0",
39-
"jest": "^26.6.0",
40-
"metro-react-native-babel-preset": "^0.63.0",
41-
"react-test-renderer": "16.13.1",
42-
"react-native": "^0.63.3"
43-
},
44-
"jest": {
45-
"modulePathIgnorePatterns": [
46-
"<rootDir>/MixpanelDemo/"
47-
],
48-
"testMatch": [
49-
"<rootDir>/__tests__/index.test.js"
50-
],
51-
"setupFiles": [
52-
"<rootDir>/__tests__/jest_setup.js"
53-
],
54-
"verbose": true,
55-
"preset": "react-native",
56-
"transform": {
57-
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
58-
}
48+
"testMatch": [
49+
"<rootDir>/__tests__/index.test.js"
50+
],
51+
"setupFiles": [
52+
"<rootDir>/__tests__/jest_setup.js"
53+
],
54+
"verbose": true,
55+
"preset": "react-native",
56+
"transform": {
57+
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
5958
}
59+
}
6060
}

0 commit comments

Comments
 (0)