Skip to content

Commit

Permalink
move back to src (actual files)
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Dec 17, 2024
1 parent 96796ad commit 911c9cb
Show file tree
Hide file tree
Showing 97 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { describe, it } from 'vitest';
import { transformComponentMetaToDefineMeta } from './component-meta-to-define-meta.js';

import type { SvelteAST } from '$lib/parser/ast.js';
import { parseAndExtractSvelteNode } from '../../../../../tests/extractor.js';
import { parseAndExtractSvelteNode } from '../../../../tests/extractor.js';

describe(transformComponentMetaToDefineMeta.name, () => {
it('works with a simple example', async ({ expect }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { describe, it } from 'vitest';
import { transformExportMetaToDefineMeta } from './export-const-to-define-meta.js';

import type { ESTreeAST } from '$lib/parser/ast.js';
import { parseAndExtractSvelteNode } from '../../../../../tests/extractor.js';
import { parseAndExtractSvelteNode } from '../../../../tests/extractor.js';

describe(transformExportMetaToDefineMeta.name, () => {
it('works with advanced example', async ({ expect }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { describe, it } from 'vitest';
import { transformImportDeclaration } from './import-declaration.js';

import type { ESTreeAST } from '$lib/parser/ast.js';
import { parseAndExtractSvelteNode } from '../../../../../tests/extractor.js';
import { parseAndExtractSvelteNode } from '../../../../tests/extractor.js';

describe(transformImportDeclaration.name, () => {
it("removes legacy components and add 'defineMeta'", async ({ expect }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { describe, it } from 'vitest';
import { transformLegacyStory } from './legacy-story.js';

import type { SvelteAST } from '$lib/parser/ast.js';
import { parseAndExtractSvelteNode } from '../../../../../tests/extractor.js';
import { parseAndExtractSvelteNode } from '../../../../tests/extractor.js';

describe(transformLegacyStory.name, () => {
it("it moves 'autodocs' prop to 'tags' correctly", async ({ expect }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { describe, it } from 'vitest';
import { transformTemplateToSnippet } from './template-to-snippet.js';

import type { SvelteAST } from '$lib/parser/ast.js';
import { parseAndExtractSvelteNode } from '../../../../../tests/extractor.js';
import { parseAndExtractSvelteNode } from '../../../../tests/extractor.js';

describe(transformTemplateToSnippet.name, () => {
it("covers a case without provided prop 'id'", async ({ expect }) => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/index.test.ts → src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type {
SvelteRenderer,
} from '$lib/types.js';

import Button from '../../examples/components/Button.svelte';
import Button from '../examples/components/Button.svelte';

describe(defineMeta.name, () => {
it('works with provided meta entry "component" entry', () => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/types.test.ts → src/types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { describe, expectTypeOf, it } from 'vitest';

import type { Meta, SvelteRenderer, ComponentAnnotations } from '$lib/types.js';

import Button from '../../examples/components/Button.svelte';
import Button from '../examples/components/Button.svelte';

describe('Meta', () => {
it(`works correctly when no 'meta.component' entry provided`, () => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 911c9cb

Please sign in to comment.