Skip to content

Commit 657dd55

Browse files
committed
rename file
1 parent 9b28d79 commit 657dd55

File tree

7 files changed

+24
-6
lines changed

7 files changed

+24
-6
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import path from 'path';
2+
import { describe, expect, test } from 'vitest';
3+
import { createRouteManifest } from '../../../../../src/config/manifest/buildManifest';
4+
5+
describe('simple', () => {
6+
test('should generate a static manifest', () => {
7+
const manifest = createRouteManifest({ appDirPath: path.join(__dirname, 'app') });
8+
expect(manifest).toEqual({
9+
dynamic: [],
10+
static: [
11+
{ path: '/', dynamic: false },
12+
{ path: '/some/nested', dynamic: false },
13+
{ path: '/user', dynamic: false },
14+
{ path: '/users', dynamic: false },
15+
],
16+
});
17+
});
18+
});

packages/nextjs/test/config/manifest/suites/catchall/catchall.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path';
22
import { describe, expect, test } from 'vitest';
3-
import { createRouteManifest } from '../../../../../src/config/manifest/build-manifest';
3+
import { createRouteManifest } from '../../../../../src/config/manifest/buildManifest';
44

55
describe('catchall', () => {
66
const manifest = createRouteManifest({ appDirPath: path.join(__dirname, 'app') });

packages/nextjs/test/config/manifest/suites/dynamic/dynamic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path';
22
import { describe, expect, test } from 'vitest';
3-
import { createRouteManifest } from '../../../../../src/config/manifest/build-manifest';
3+
import { createRouteManifest } from '../../../../../src/config/manifest/buildManifest';
44

55
describe('dynamic', () => {
66
const manifest = createRouteManifest({ appDirPath: path.join(__dirname, 'app') });

packages/nextjs/test/config/manifest/suites/file-extensions/file-extensions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path';
22
import { describe, expect, test } from 'vitest';
3-
import { createRouteManifest } from '../../../../../src/config/manifest/build-manifest';
3+
import { createRouteManifest } from '../../../../../src/config/manifest/buildManifest';
44

55
describe('file-extensions', () => {
66
const manifest = createRouteManifest({ appDirPath: path.join(__dirname, 'app') });

packages/nextjs/test/config/manifest/suites/route-groups/route-groups.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path';
22
import { describe, expect, test } from 'vitest';
3-
import { createRouteManifest } from '../../../../../src/config/manifest/build-manifest';
3+
import { createRouteManifest } from '../../../../../src/config/manifest/buildManifest';
44

55
describe('route-groups', () => {
66
const manifest = createRouteManifest({ appDirPath: path.join(__dirname, 'app') });

packages/nextjs/test/config/manifest/suites/static/static.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import path from 'path';
22
import { describe, expect, test } from 'vitest';
3-
import { createRouteManifest } from '../../../../../src/config/manifest/build-manifest';
3+
import { createRouteManifest } from '../../../../../src/config/manifest/buildManifest';
44

5-
describe('simple', () => {
5+
describe('static', () => {
66
test('should generate a static manifest', () => {
77
const manifest = createRouteManifest({ appDirPath: path.join(__dirname, 'app') });
88
expect(manifest).toEqual({

0 commit comments

Comments
 (0)