File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ The integration tests generally are run in your continuous integration (CI) envi
8
8
9
9
The integration test process is as follows:
10
10
11
- 1 . [ ` npm pack ` ] ( https://docs.npmjs.com/cli/pack.html ) the library to create the _ same_ ` .tgz ` tarball that would be published in the registry
11
+ 1 . [ ` npm pack ` ] ( https://docs.npmjs.com/cli/pack.html ) the built library to create the _ same_ ` .tgz ` tarball that would be published in the registry
12
12
1 . Copy the integration tests "project" at ` integration-tests/ ` over to a temporary directory
13
13
1 . ` npm install ` the packed library (from Step 1), ` @benmvp/cli ` , and any other dependencies specified in the ` package.json ` of the project
14
14
1 . Run ` npx benmvp test ` on the project to use ` @benmvp/cli ` to run the tests
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ The integration tests generally are run in your continuous integration (CI) envi
8
8
9
9
The integration test process is as follows:
10
10
11
- 1 . [ ` npm pack ` ] ( https://docs.npmjs.com/cli/pack.html ) the library to create the _ same_ ` .tgz ` tarball that would be published in the registry
11
+ 1 . [ ` npm pack ` ] ( https://docs.npmjs.com/cli/pack.html ) the built library to create the _ same_ ` .tgz ` tarball that would be published in the registry
12
12
1 . Copy the integration tests "project" at ` integration-tests/ ` over to a temporary directory
13
13
1 . ` npm install ` the packed library (from Step 1), ` @benmvp/cli ` , and any other dependencies specified in the ` package.json ` of the project
14
14
1 . Run ` npx benmvp test ` on the project to use ` @benmvp/cli ` to run the tests
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ echo -e "Created temp integration path: $TEMP_INTEGRATION_PATH\n"
9
9
10
10
TARBALL_FILE_PATH=" $TEMP_INTEGRATION_PATH /test-package.tgz"
11
11
12
+ # build library before packing in order to be able to reference built files
13
+ # this step will fail within benmvp-cli repo since the `benmvp` bin doesn't
14
+ # exist yet, but that's ok because we always `build` before `integrate`
15
+ echo -e " npx benmvp build\n"
16
+ npx benmvp build
17
+
12
18
# npm pack to tarball library into integration directory
13
19
echo -e " npm pack && mv *.tgz $TARBALL_FILE_PATH \n"
14
20
npm pack && mv * .tgz $TARBALL_FILE_PATH
@@ -40,7 +46,7 @@ if [ ! -d "$TEMP_INTEGRATION_PATH/node_modules" ]; then
40
46
exit 1
41
47
fi
42
48
43
- # Run `npx benmvp test` in $tempIntegration to use @benmvp/cli
49
+ # Run `npx benmvp test` in $TEMP_INTEGRATION_PATH to use @benmvp/cli
44
50
# to run the integration tests
45
51
# NOTE: For integration test *for* @benmvp/cli this will use the .tgz version
46
52
# that would've been added above
You can’t perform that action at this time.
0 commit comments