target.ts 373 B

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