1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-03-15 10:54:09 +00:00

[misc] use plain mocha for testing and bump devDependencies

This commit is contained in:
Jakob Ackermann 2020-11-09 16:03:33 +00:00
parent dddb431034
commit 39809562fd
3 changed files with 1132 additions and 42 deletions

View file

@ -1,35 +0,0 @@
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
coffee:
server:
expand: true,
flatten: false,
cwd: 'app/coffee',
src: ['**/*.coffee'],
dest: 'app/js/',
ext: '.js'
server_tests:
expand: true,
flatten: false,
cwd: 'test/unit/coffee',
src: ['**/*.coffee'],
dest: 'test/unit/js/',
ext: '.js'
mochaTest:
unit:
options:
reporter: process.env.MOCHA_RUNNER || "spec"
grep: grunt.option("grep")
require: 'coffee-script/register'
src: ['test.coffee']
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-mocha-test'
grunt.registerTask 'test:unit', ['mochaTest:unit']

1125
libraries/redis-wrapper/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -5,18 +5,18 @@
"main": "index.js",
"author": "ShareLaTeX",
"license": "ISC",
"scripts": {
"test": "mocha --require coffee-script/register test.coffee"
},
"dependencies": {
"coffee-script": "1.8.0",
"ioredis": "~4.17.3",
"underscore": "1.7.0"
},
"devDependencies": {
"chai": "1.9.1",
"grunt": "0.4.5",
"grunt-contrib-coffee": "0.11.1",
"grunt-mocha-test": "0.12.0",
"mocha": "1.21.4",
"sandboxed-module": "1.0.1",
"sinon": "1.10.3"
"chai": "^4.2.0",
"mocha": "^8.2.1",
"sandboxed-module": "^2.0.4",
"sinon": "^9.2.1"
}
}