pokemon-showdown/test
Guangcong Luo e0f97dcf6b Replace Chat.uncache* with Utils.clearRequireCache
This replaces the old approach with a new "clear everything except a
whitelist" approach, which should overall involve much less code and
lead to fewer bugs of the "the path changed for a module and I forgot
to update the uncache paths" variety.

I considered a lot of other approaches, but they seem to have more
flaws without any advantages in exchange for them. (We moved away
from `uncacheTree` because it only tracks the first require: there's
no way to get a full list of dependents for a module, only its first
dependent.)
2020-06-12 22:02:32 -07:00
..
lib Use assert in strict mode 2020-02-20 00:39:31 -08:00
server Refactor auth and room.settings (#6777) 2020-06-09 08:22:25 -07:00
sim Replace Chat.uncache* with Utils.clearRequireCache 2020-06-12 22:02:32 -07:00
assert.js Remove Dex.getForme etc 2020-04-28 17:38:54 -07:00
common.js Turn on prefer-const for .js files 2020-04-23 11:37:47 -07:00
main.js Ignore existing chatrooms in tests (#6446) 2020-03-11 10:46:45 -07:00
mocha.opts Unit test Dashycode 2019-07-13 02:42:57 -03:00
users-utils.js Turn on prefer-const for .js files 2020-04-23 11:37:47 -07:00