@@ -37,7 +37,6 @@ describe('Installation', () => {
3737 'JavaScript Client' ,
3838 'JavaScript Helper' ,
3939 'React InstantSearch' ,
40- 'React InstantSearch Native' ,
4140 'Vue InstantSearch' ,
4241 ]
4342 . map ( name => path . join ( templatesFolder , name ) )
@@ -47,7 +46,7 @@ describe('Installation', () => {
4746 const templateName = path . basename ( templatePath ) ;
4847
4948 describe ( templateName , ( ) => {
50- test ( 'get installed correctly' , ( ) => {
49+ test ( 'installs and builds correctly' , ( ) => {
5150 execSync (
5251 `yarn start ${ appPath } \
5352 --template "${ templateName } "` ,
@@ -57,14 +56,32 @@ describe('Installation', () => {
5756 expect ( fs . lstatSync ( `${ appPath } /node_modules` ) . isDirectory ( ) ) . toBe (
5857 true
5958 ) ;
59+
60+ expect ( ( ) => {
61+ execSync ( `cd ${ appPath } && yarn build` , { stdio : 'ignore' } ) ;
62+ } ) . not . toThrow ( ) ;
6063 } ) ;
6164 } ) ;
6265 } ) ;
6366 } ) ;
6467
6568 describe ( 'Mobile' , ( ) => {
69+ describe ( 'React InstantSearch Native' , ( ) => {
70+ test ( 'installs correctly' , ( ) => {
71+ execSync (
72+ `yarn start ${ appPath } \
73+ --template "React InstantSearch Native"` ,
74+ { stdio : 'ignore' }
75+ ) ;
76+
77+ expect ( fs . lstatSync ( `${ appPath } /node_modules` ) . isDirectory ( ) ) . toBe (
78+ true
79+ ) ;
80+ } ) ;
81+ } ) ;
82+
6683 describe ( 'InstantSearch iOS' , ( ) => {
67- test ( 'get installed correctly' , ( ) => {
84+ test ( 'installs correctly' , ( ) => {
6885 execSync (
6986 `yarn start ${ appPath } \
7087 --template "InstantSearch iOS"` ,
0 commit comments