web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _pure = require("./pure");
  6. Object.keys(_pure).forEach(function (key) {
  7. if (key === "default" || key === "__esModule") return;
  8. if (key in exports && exports[key] === _pure[key]) return;
  9. Object.defineProperty(exports, key, {
  10. enumerable: true,
  11. get: function () {
  12. return _pure[key];
  13. }
  14. });
  15. });
  16. // if we're running in a test runner that supports afterEach
  17. // or teardown then we'll automatically run cleanup afterEach test
  18. // this ensures that tests run in isolation from each other
  19. // if you don't like this then either import the `pure` module
  20. // or set the RTL_SKIP_AUTO_CLEANUP env variable to 'true'.
  21. if (!process.env.RTL_SKIP_AUTO_CLEANUP) {
  22. // ignore teardown() in code coverage because Jest does not support it
  23. /* istanbul ignore else */
  24. if (typeof afterEach === 'function') {
  25. afterEach(() => {
  26. (0, _pure.cleanup)();
  27. });
  28. } else if (typeof teardown === 'function') {
  29. // Block is guarded by `typeof` check.
  30. // eslint does not support `typeof` guards.
  31. // eslint-disable-next-line no-undef
  32. teardown(() => {
  33. (0, _pure.cleanup)();
  34. });
  35. }
  36. }