target.ts 473 B

123456789101112131415161718192021
  1. // Copyright (c) Jupyter Development Team.
  2. // Distributed under the terms of the Modified BSD License.
  3. import 'jest';
  4. // Distributed under the terms of the Modified BSD License.
  5. declare let define: any;
  6. if (typeof define !== 'function') {
  7. // @ts-expect-error
  8. const define = require('amdefine')(module); // eslint-disable-line @typescript-eslint/no-unused-vars
  9. }
  10. module.exports = {
  11. test: () => {
  12. return 1;
  13. },
  14. test2: () => {
  15. throw Error('Nope');
  16. }
  17. };