mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 18:39:51 +02:00
restructure test dir
This commit is contained in:
15
Makefile
15
Makefile
@@ -56,19 +56,24 @@ lint:
|
|||||||
@ $(standard) ./lib
|
@ $(standard) ./lib
|
||||||
|
|
||||||
# Build the test source.
|
# Build the test source.
|
||||||
test/browser/support/build.js: $(shell find ./lib) ./test/browser/index.js
|
test/browser/support/build.js: $(shell find ./lib) ./test/browser.js
|
||||||
@ $(browserify) --debug --transform babelify --outfile ./test/browser/support/build.js ./test/browser/index.js
|
@ $(browserify) --debug --transform babelify --outfile ./test/support/build.js ./test/browser.js
|
||||||
|
|
||||||
# Run the tests.
|
# Run the tests.
|
||||||
test: test-browser test-server
|
test: test-browser test-server
|
||||||
|
|
||||||
# Run the browser-side tests.
|
# Run the browser-side tests.
|
||||||
test-browser: ./test/browser/support/build.js
|
test-browser: ./test/support/build.js
|
||||||
@ $(mocha-phantomjs) --reporter spec --timeout 5000 ./test/browser/support/browser.html
|
@ $(mocha-phantomjs) --reporter spec --timeout 5000 ./test/support/browser.html
|
||||||
|
|
||||||
# Run the server-side tests.
|
# Run the server-side tests.
|
||||||
test-server:
|
test-server:
|
||||||
@ $(mocha) --compilers js:babel-core/register --reporter spec --timeout 5000 ./test/server
|
@ $(mocha) \
|
||||||
|
--compilers js:babel-core/register \
|
||||||
|
--require source-map-support/register \
|
||||||
|
--reporter spec \
|
||||||
|
--timeout 5000 \
|
||||||
|
./test/server.js
|
||||||
|
|
||||||
# Watch the auto-markdown example.
|
# Watch the auto-markdown example.
|
||||||
watch-example-auto-markdown:
|
watch-example-auto-markdown:
|
||||||
|
2
test/server.js
Normal file
2
test/server.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
import './transforms'
|
@@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
import 'source-map-support/register'
|
|
||||||
import './transforms'
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user