Previously this was fixed by moving these specs to a different namespace (speculative.core.extra), but this was later reverted. The reason is that this doesn't compose: some specs work in one environment (CLJ) but not in another (CLJS) so each environment would need its own namespace for this.
Another way for disabling "unwanted" specs could be the use of an a special variable that indicates that they should be defined. For JVM and Node an environment variable could work, for CLJS a goog.define could work.
Maybe even better would be to make the blacklist overridable via a variable. If users do not want a blacklist, they can override it with an empty blacklist.
Another option could be to "unload" fdefs before users call (stest/instrument) and do something with the spec registry.
See https://dev.clojure.org/jira/browse/CLJ-2060
This may be the most straightforward option: include a unload-blacklisted function in speculative.instrument.
See https://github.com/borkdude/speculative-kaocha-plugin/issues/2.
When a user calls
(stest/instrument)
in their project, specs likehash-map
will create errors (see https://github.com/borkdude/speculative/issues/264).Previously this was fixed by moving these specs to a different namespace (speculative.core.extra), but this was later reverted. The reason is that this doesn't compose: some specs work in one environment (CLJ) but not in another (CLJS) so each environment would need its own namespace for this.
Another way for disabling "unwanted" specs could be the use of an a special variable that indicates that they should be defined. For JVM and Node an environment variable could work, for CLJS a goog.define could work.
Prototype:
Maybe even better would be to make the blacklist overridable via a variable. If users do not want a blacklist, they can override it with an empty blacklist.
Another option could be to "unload" fdefs before users call
(stest/instrument)
and do something with the spec registry. See https://dev.clojure.org/jira/browse/CLJ-2060 This may be the most straightforward option: include aunload-blacklisted
function in speculative.instrument.