1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 10:29:48 +02:00

restructure test dir

This commit is contained in:
Ian Storm Taylor
2016-06-23 11:36:43 -07:00
parent d637d9e053
commit 64e837230d
281 changed files with 19 additions and 17 deletions

View File

@@ -56,19 +56,24 @@ lint:
@ $(standard) ./lib
# Build the test source.
test/browser/support/build.js: $(shell find ./lib) ./test/browser/index.js
@ $(browserify) --debug --transform babelify --outfile ./test/browser/support/build.js ./test/browser/index.js
test/browser/support/build.js: $(shell find ./lib) ./test/browser.js
@ $(browserify) --debug --transform babelify --outfile ./test/support/build.js ./test/browser.js
# Run the tests.
test: test-browser test-server
# Run the browser-side tests.
test-browser: ./test/browser/support/build.js
@ $(mocha-phantomjs) --reporter spec --timeout 5000 ./test/browser/support/browser.html
test-browser: ./test/support/build.js
@ $(mocha-phantomjs) --reporter spec --timeout 5000 ./test/support/browser.html
# Run the server-side tests.
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-example-auto-markdown:

2
test/server.js Normal file
View File

@@ -0,0 +1,2 @@
import './transforms'

View File

@@ -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