Tag: 咖啡的摩卡

无法使用CoffeeScript运行摩卡

Makefile – 内容: REPORTER = dot all: build build: @./node_modules/coffee-script/bin/coffee \ -c \ -o lib src clean: rm -rf lib mkdir lib watch: @./node_modules/coffee-script/bin/coffee \ -o lib \ -cw src test: @./node_modules/mocha/bin/mocha \ –reporter $(REPORTER) \ test/*.coffee .PHONY: build clean watch test 项目根目录有一个包含两个文件的testing文件夹:mocha.opts和example.coffee example.coffee – 内容 describe "feature", -> it "should add two numbers", -> […]