# Aurelia Store Container.instance.get(Store) fails in multiple tests

**URL:** <https://discourse.aurelia.io/t/aurelia-store-container-instance-get-store-fails-in-multiple-tests/6457>\
**Category:** Help Requests\
**Created:** [June 25, 2025, 7:14am UTC](https://discourse.aurelia.io/t/aurelia-store-container-instance-get-store-fails-in-multiple-tests/6457 "2025-06-25T07:14:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladyn](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/vladyn/32/2473_2.png) [@vladyn](https://discourse.aurelia.io/u/vladyn)\
**Post date:** [June 25, 2025, 7:14am UTC](https://discourse.aurelia.io/t/aurelia-store-container-instance-get-store-fails-in-multiple-tests/6457/1 "2025-06-25T07:14:10Z")

</div>

Hello there,  
I have this error in multiple unit tests:

```auto
 FAIL src/features/state-tree/actions.spec.js
  ● Test suite failed to run

    TypeError: Cannot read properties of undefined (reading 'get')

      2 | import { Store } from 'aurelia-store';
      3 |
    > 4 | export default Container.instance.get(Store);
        | ^
      5 |

      at Object.get (src/features/state-tree/store.js:4:35)
      at Object.require (src/features/state-tree/actions.js:1:1)
      at Object.require (src/features/state-tree/actions.spec.js:1:1)

```

I’m using jest with the following configuration:  
// jest.pretest

```auto
import 'aurelia-polyfills';
import {Options} from 'aurelia-loader-nodejs';
import {globalize} from 'aurelia-pal-nodejs';
import path from 'path';
Options.relativeToDir = path.join(__dirname, 'unit');
globalize();

```

Could someone advise me on what needs to be done to get the Aurelia 1 store in my tests?
