File tree 3 files changed +1788
-2685
lines changed
3 files changed +1788
-2685
lines changed Original file line number Diff line number Diff line change @@ -36,18 +36,9 @@ $ yarn generate
36
36
```
37
37
38
38
## Running Tests
39
- You need to first start the app and the functions before running the tests .
39
+ Tests use the Netlify CLI to run the serverless functions locally. You'll probably be prompted to login with your Netlify account .
40
40
41
41
``` bash
42
- # Build lambda functions locally
43
- $ yarn netlify-lambda build netlify-lambda-src
44
-
45
- # Serve lambda functions locally
46
- $ yarn netlify-lambda serve netlify-lambda-src
47
-
48
- # Serve nuxt app with hot reload at localhost:3000
49
- $ yarn dev
50
-
51
42
# Run tests
52
43
$ yarn test
53
44
```
Original file line number Diff line number Diff line change 8
8
"dev" : " nuxt" ,
9
9
"build" : " nuxt build" ,
10
10
"start" : " nuxt start" ,
11
- "test" : " cypress open" ,
11
+ "test" : " ntl dev & wait-on http://localhost:3000 & cypress run" ,
12
+ "testing" : " cypress run" ,
12
13
"generate" : " nuxt generate" ,
13
14
"lint" : " sass-lint -c .sass-lint.yml '**/*.scss' -v -q -i 'node_modules/**/*.scss' && eslint --ext .js,.vue --ignore-path .gitignore ."
14
15
},
32
33
"eslint-plugin-cypress" : " ^2.8.1" ,
33
34
"eslint-plugin-nuxt" : " >=0.4.2" ,
34
35
"eslint-plugin-prettier" : " ^3.0.1" ,
35
- "netlify-cli" : " ^2.25.0 " ,
36
+ "netlify-cli" : " 2.11.13 " ,
36
37
"node-sass" : " ^4.11.0" ,
37
38
"prettier" : " ^1.16.4" ,
38
39
"sass-lint" : " ^1.12.1" ,
39
- "sass-loader" : " ^7.1.0"
40
+ "sass-loader" : " ^7.1.0" ,
41
+ "wait-on" : " ^3.3.0"
40
42
}
41
43
}
You can’t perform that action at this time.
0 commit comments