mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 02:53:40 +08:00
7e303f9320
Update sinon.js to 9.0.2 to access async fake timers https://sinonjs.org/releases/v9.0.2/fake-timers/ which can then be used with acceptance tests (previously useFakeTimers didn't work with await, e.g. for visit). Fix the bookmark acceptance test that was time based to use these new fake timers. Add a fakeTime function that uses moment and the provided date string + timezone to freeze time using useFakeTimers and return a clock. Add a timeStep function that accepts a clock from fakeTime and a function to run. Once the function is run we call clock.tickAsync(1000) to progress the fake clock forward 1s to progress promises/callbacks.
61 lines
2.1 KiB
JSON
61 lines
2.1 KiB
JSON
{
|
|
"name": "discourse",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"repository": "git@github.com:discourse/discourse.git",
|
|
"author": "Discourse",
|
|
"license": "GPL-2.0-only",
|
|
"dependencies": {
|
|
"@fortawesome/fontawesome-free": "5.11.2",
|
|
"@popperjs/core": "v2.0.6",
|
|
"ace-builds": "1.4.2",
|
|
"blueimp-file-upload": "10.13.0",
|
|
"bootbox": "3.2.0",
|
|
"bootstrap": "v3.4.1",
|
|
"chart.js": "2.9.3",
|
|
"eslint-plugin-lodash": "^6.0.0",
|
|
"favcount": "https://github.com/chrishunt/favcount",
|
|
"handlebars": "^4.7.0",
|
|
"highlight.js": "https://github.com/highlightjs/highlight.js",
|
|
"htmlparser": "https://github.com/tautologistics/node-htmlparser",
|
|
"intersection-observer": "^0.5.1",
|
|
"jquery": "3.4.1",
|
|
"jquery-color": "3.0.0-alpha.1",
|
|
"jquery-resize": "https://github.com/cowboy/jquery-resize/",
|
|
"jquery-tags-input": "1.3.5",
|
|
"jquery.autoellipsis": "https://github.com/pvdspek/jquery.autoellipsis",
|
|
"jquery.cookie": "1.4.1",
|
|
"magnific-popup": "1.1.0",
|
|
"markdown-it": "10.0.0",
|
|
"moment": "2.24.0",
|
|
"moment-timezone": "0.5.25",
|
|
"moment-timezone-names-translations": "https://github.com/discourse/moment-timezone-names-translations",
|
|
"mousetrap": "https://github.com/discourse/mousetrap#firefox-alt-key",
|
|
"pikaday": "1.8.0",
|
|
"resumablejs": "1.1.0",
|
|
"spectrum-colorpicker": "1.8.0",
|
|
"workbox-core": "^4.3.1",
|
|
"workbox-expiration": "^4.3.1",
|
|
"workbox-routing": "^4.3.1",
|
|
"workbox-strategies": "^4.3.1",
|
|
"workbox-sw": "^4.3.1"
|
|
},
|
|
"devDependencies": {
|
|
"@arkweid/lefthook": "^0.6.3",
|
|
"chrome-launcher": "^0.12.0",
|
|
"chrome-remote-interface": "^0.25",
|
|
"ember-template-lint": "^2.5.2",
|
|
"eslint-config-discourse": "1.1.1",
|
|
"eslint-plugin-discourse-ember": "0.0.3",
|
|
"lodash-cli": "https://github.com/lodash-archive/lodash-cli.git",
|
|
"pretender": "^1.6",
|
|
"puppeteer": "1.20",
|
|
"qunit": "2.8.0",
|
|
"route-recognizer": "^0.3.3",
|
|
"sinon": "^9.0.2"
|
|
},
|
|
"scripts": {
|
|
"preinstall": "node -e \"if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('NPM is not supported, please use Yarn instead. ')\""
|
|
}
|
|
}
|