apify-test-tools 0.9.0-beta.0 → 0.9.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apify-test-tools",
3
- "version": "0.9.0-beta.0",
3
+ "version": "0.9.0-beta.1",
4
4
  "type": "module",
5
5
  "description": "TBD",
6
6
  "repository": {
@@ -289,7 +289,7 @@ describe('readConfigFile', () => {
289
289
  await expect(readConfigFile()).rejects.toThrow(/overlap/);
290
290
  });
291
291
 
292
- it('throws when overrideActorContext does not include the actor own folder', async () => {
292
+ it('adds the actor own folder automatically when overrideActorContext does not cover it', async () => {
293
293
  mockFiles({
294
294
  [CONFIG_FILE_NAME]: validConfig([
295
295
  {
@@ -302,7 +302,8 @@ describe('readConfigFile', () => {
302
302
  'actors/shopify/.actor/actor.json': actorJson({}),
303
303
  });
304
304
 
305
- await expect(readConfigFile()).rejects.toThrow('not reachable through its own context paths');
305
+ const result = await readConfigFile();
306
+ expect(result[0].contextPaths).toEqual(['code', 'shared', 'actors/shopify']);
306
307
  });
307
308
 
308
309
  it('strips trailing slashes from folder and overrideActorContext entries', async () => {