I'd like for my jest snapshots to be created as a sibling to my test file

I current have my snapshots being put in the default `__snapshots__` folder.

Current:

[![Screenshot of Folder Structure: Before](https://i.stack.imgur.com/9L0Mf.png)](https://i.stack.imgur.com/9L0Mf.png)

What I would like to achieve:

[![Screenshot of Folder Structure: What I want](https://i.stack.imgur.com/gcFMw.png)](https://i.stack.imgur.com/gcFMw.png)

I found this post on github: <https://github.com/facebook/jest/issues/1650>

In the thread someone says the following should work but I haven't had any luck (even with changing the regex and other changes):

```
module.exports = {
  testPathForConsistencyCheck: 'some/example.test.js',

  resolveSnapshotPath: (testPath, snapshotExtension) =>
    testPath.replace(/\.test\.([tj]sx?)/, `${snapshotExtension}.$1`),

  resolveTestPath: (snapshotFilePath, snapshotExtension) =>
    snapshotFilePath.replace(snapshotExtension, '.test'),
}

```