This repository was archived by the owner on Jun 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @segment/analytics-react-native" ,
3
- "version" : " 2.1.0 -beta" ,
3
+ "version" : " 2.1.2 -beta" ,
4
4
"description" : " The hassle-free way to add Segment analytics to your React-Native app." ,
5
5
"main" : " lib/commonjs/index" ,
6
6
"scripts" : {
7
7
"build" : " bob build" ,
8
8
"test" : " jest" ,
9
9
"typescript" : " tsc --noEmit" ,
10
- "clean" : " rimraf lib node_modules"
10
+ "clean" : " rimraf lib node_modules" ,
11
+ "release" : " release-it"
11
12
},
12
13
"keywords" : [
13
14
" segment" ,
70
71
"react" : " ^17.0.2" ,
71
72
"react-native" : " ^0.67.2" ,
72
73
"react-native-builder-bob" : " ^0.18.2" ,
74
+ "release-it" : " 14.12.4" ,
73
75
"rimraf" : " ^3.0.2" ,
74
76
"ts-jest" : " ^27.0.7" ,
75
77
"typescript" : " ^4.4.4"
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ describe('SegmentClient', () => {
137
137
} ) ;
138
138
} ) ;
139
139
140
- describe . only ( 'SegmentClient onUpdateStore' , ( ) => {
140
+ describe ( 'SegmentClient onUpdateStore' , ( ) => {
141
141
const store = new MockSegmentStore ( ) ;
142
142
const clientArgs = {
143
143
config : {
Original file line number Diff line number Diff line change 1
1
import { NativeModules } from 'react-native' ;
2
2
import type { Context , NativeContextInfo , UserTraits } from '../types' ;
3
3
4
+ import packageJson from '../../package.json' ;
5
+
4
6
import { getContext } from '../context' ;
5
7
6
8
describe ( '#getContext' , ( ) => {
@@ -39,9 +41,8 @@ describe('#getContext', () => {
39
41
type : 'phone' ,
40
42
} ,
41
43
library : {
42
- name : '@segment/analytics-react-native' ,
43
- // TODO: Mock this value
44
- version : '2.1.0-beta' ,
44
+ name : packageJson . name ,
45
+ version : packageJson . version ,
45
46
} ,
46
47
locale : 'en_US' ,
47
48
network : {
You can’t perform that action at this time.
0 commit comments