Skip to content

Commit ab6b4cf

Browse files
committed
Add serve-test npm script.
1 parent 75d5016 commit ab6b4cf

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,10 @@ Error: this is a demo
219219
This repo contains both automated tests for node and manual tests for the browser. The automated tests can be run using mocha (type `mocha` in the root directory). To run the manual tests:
220220

221221
* Build the tests using `build.js`
222-
* Visit `amd-test`, `browser-test`, and `browserify-test` using the HTTP protocol (try `python -m SimpleHTTPServer` or use [http-server](https://www.npmjs.com/package/http-server))
223-
* The test `browserify-test` currently isn't working due to a bug with browserify. See pull request [#66](https://github.com/evanw/node-source-map-support/pull/66) for details.
222+
* Launch the HTTP server (`npm run serve-tests`) and visit
223+
* http://127.0.0.1:1336/amd-test
224+
* http://127.0.0.1:1336/browser-test
225+
* http://127.0.0.1:1336/browserify-test - **Currently not working** due to a bug with browserify (see [pull request #66](https://github.com/evanw/node-source-map-support/pull/66) for details).
224226
* For `header-test`, run `server.js` inside that directory and visit http://127.0.0.1:1337/
225227

226228
## License

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
"main": "./source-map-support.js",
66
"scripts": {
77
"build": "node build.js",
8+
"serve-tests": "http-server -p 1336",
89
"test": "mocha"
910
},
1011
"dependencies": {
1112
"source-map": "0.1.32"
1213
},
1314
"devDependencies": {
14-
"coffee-script": "1.7.1",
1515
"browserify": "3.44.2",
16+
"coffee-script": "1.7.1",
17+
"http-server": "^0.8.5",
1618
"mocha": "1.18.2"
1719
},
1820
"repository": {

0 commit comments

Comments
 (0)