From 8b7d9e7067320e0a0aaff2ee657ef64f0ff3259b Mon Sep 17 00:00:00 2001 From: Riccardo Perra Date: Wed, 8 Nov 2023 22:06:48 +0100 Subject: [PATCH] test: fix test --- packages/state/test/provider.test.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/state/test/provider.test.tsx b/packages/state/test/provider.test.tsx index a3ec507..784a5cb 100644 --- a/packages/state/test/provider.test.tsx +++ b/packages/state/test/provider.test.tsx @@ -2,6 +2,7 @@ import { describe, expect, it } from 'vitest'; import { render } from '@solidjs/testing-library'; import { provideState, StateProvider } from '../src/solid'; import { defineStore } from '~/solid/store'; +import { StateBuilderError } from '~/error'; describe('provider', () => { const counter = defineStore(() => ({ count: 0 })).extend((ctx) => ({ @@ -55,7 +56,7 @@ describe('provider', () => { it('should throw error', async () => { expect(() => render(() => )).toThrowError( - new Error('No found in component tree'), + new StateBuilderError('No found in component tree'), ); }); });