Unable to run react tests - jest, enzyme Babel Error



I’m trying to setup tests for my react components

But keep getting the BABEL error although my .babelrc is correctly setup.

The terminal output on running jest

    thekhon:~/workspace (master) $ jest
     PASS  src/js/components/header/header.test.js
     FAIL  .c9/metadata/workspace/src/js/components/header/header.test.js
      ● Test suite failed to run

        ReferenceError: [BABEL] /home/ubuntu/workspace/.c9/metadata/workspace/src/js/components/header/header.test.js: Unknown option: /home/ubuntu/workspace/.c9/metadata/workspace/.babelrc.filter. Check out http://babeljs.io/docs/usage/options/ for more information about options.
        A common cause of this error is the presence of a configuration options object without the corresponding preset name. Example:
          `{ presets: [{option: value}] }`
          `{ presets: [['presetName', {option: value}]] }`
        For more detailed information on preset configuration, please see http://babeljs.io/docs/plugins/#pluginpresets-options.
          at Logger.error (node_modules/babel-core/lib/transformation/file/logger.js:41:11)
          at OptionManager.mergeOptions (node_modules/babel-core/lib/transformation/file/options/option-manager.js:226:20)
          at OptionManager.init (node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
          at File.initOptions (node_modules/babel-core/lib/transformation/file/index.js:212:65)
          at new File (node_modules/babel-core/lib/transformation/file/index.js:135:24)
          at Pipeline.transform (node_modules/babel-core/lib/transformation/pipeline.js:46:16)

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

My .babelrc:

  "presets": ["react", "env"],
  "plugins": ["syntax-dynamic-import"]


oh i have the same question? have u got the answer?