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 11{
22 "name" : " @segment/analytics-react-native" ,
3- "version" : " 2.1.0 -beta" ,
3+ "version" : " 2.1.2 -beta" ,
44 "description" : " The hassle-free way to add Segment analytics to your React-Native app." ,
55 "main" : " lib/commonjs/index" ,
66 "scripts" : {
77 "build" : " bob build" ,
88 "test" : " jest" ,
99 "typescript" : " tsc --noEmit" ,
10- "clean" : " rimraf lib node_modules"
10+ "clean" : " rimraf lib node_modules" ,
11+ "release" : " release-it"
1112 },
1213 "keywords" : [
1314 " segment" ,
7071 "react" : " ^17.0.2" ,
7172 "react-native" : " ^0.67.2" ,
7273 "react-native-builder-bob" : " ^0.18.2" ,
74+ "release-it" : " 14.12.4" ,
7375 "rimraf" : " ^3.0.2" ,
7476 "ts-jest" : " ^27.0.7" ,
7577 "typescript" : " ^4.4.4"
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ describe('SegmentClient', () => {
137137 } ) ;
138138} ) ;
139139
140- describe . only ( 'SegmentClient onUpdateStore' , ( ) => {
140+ describe ( 'SegmentClient onUpdateStore' , ( ) => {
141141 const store = new MockSegmentStore ( ) ;
142142 const clientArgs = {
143143 config : {
Original file line number Diff line number Diff line change 11import { NativeModules } from 'react-native' ;
22import type { Context , NativeContextInfo , UserTraits } from '../types' ;
33
4+ import packageJson from '../../package.json' ;
5+
46import { getContext } from '../context' ;
57
68describe ( '#getContext' , ( ) => {
@@ -39,9 +41,8 @@ describe('#getContext', () => {
3941 type : 'phone' ,
4042 } ,
4143 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 ,
4546 } ,
4647 locale : 'en_US' ,
4748 network : {
You can’t perform that action at this time.
0 commit comments