diff --git a/tests/query.test.js b/tests/query.test.js index 8885a4a..be2aaea 100644 --- a/tests/query.test.js +++ b/tests/query.test.js @@ -1,11 +1,11 @@ -import { before, describe, it } from 'node:test' +import { beforeEach, describe, it } from 'node:test' import { addComponent, addEntity, createWorld, defineComponent, Types } from 'bitecs' import assert from './assert.js' import { query } from '../src/query.js' let engine = {} describe('query', () => { - before(() => { + beforeEach(() => { const world = { default: createWorld() } const component = { Player: defineComponent(null, 10),