Skip to content

Commit 3372c6b

Browse files
committed
Update tests
1 parent ec37720 commit 3372c6b

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

test/hook.test.mjs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import Snap from '@matteo.collina/snap'
77

88
test.beforeEach(async (t) => {
99
const esmLoaderRewriter = await import('../hook.mjs')
10-
const packages = new Set(['esm-pkg', 'pkg-1'])
1110
esmLoaderRewriter.initialize({
12-
packages,
1311
instrumentations: [
1412
{
1513
channelName: 'unitTestEsm',
@@ -152,9 +150,7 @@ test('should not rewrite code if it does not match a subscriber and a cjs module
152150

153151
test('should not rewrite code if a function query does not exist in file', async (t) => {
154152
const { esmLoaderRewriter, snap } = t.ctx
155-
const packages = new Set(['esm-pkg'])
156153
esmLoaderRewriter.initialize({
157-
packages,
158154
instrumentations: [
159155
{
160156
channelName: 'unitTestEsm',

test/index.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const { readFileSync } = require('node:fs')
1010

1111
test.beforeEach((t) => {
1212
const subscribers = {
13-
packages: new Set(['pkg-1']),
1413
instrumentations: [
1514
{
1615
channelName: 'unitTest',
@@ -92,7 +91,6 @@ test('should not rewrite code for an unmatch patch', async (t) => {
9291
test('should not rewrite code if a function query does not exist in file', async (t) => {
9392
const { modulePath, snap } = t.ctx
9493
const subscribers = {
95-
packages: new Set(['pkg-1']),
9694
instrumentations: [
9795
{
9896
channelName: 'unitTest',

0 commit comments

Comments
 (0)