Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate tests #1

Open
alexcarpenter opened this issue Jan 28, 2018 · 1 comment
Open

Integrate tests #1

alexcarpenter opened this issue Jan 28, 2018 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@alexcarpenter
Copy link
Owner

Integrate some type of tests

@alexcarpenter alexcarpenter added enhancement New feature or request help wanted Extra attention is needed labels Jan 28, 2018
@alexcarpenter
Copy link
Owner Author

Exploring jest as a test suite on https://github.com/alexcarpenter/butane-show-hide/tree/tests

butane-show-hide git:tests ❯ npm run test                                                                                                               ⏎ ✹ ✭

> butane-show-hide@1.0.0-alpha.2 test /Users/mighty/personal/butane-show-hide
> jest

 FAIL  ./index.test.js
  ● Test suite failed to run

    /Users/mighty/personal/butane-show-hide/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import 'wicg-inert';
                                                                                             ^^^^^^

    SyntaxError: Unexpected token import

    > 1 | const ButaneShowHide = require('./index')
      2 |

      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:318:17)
      at Object.<anonymous> (index.test.js:1:113)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        6.501s
Ran all test suites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant