Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/__tests__/cli/build-watch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const PAUSE_TIME = IS_WINDOWS ? 2_500 : 1_000;
const pauseForTSBuffering = (): Promise<void> =>
new Promise((resolve) => setTimeout(resolve, PAUSE_TIME));

describe('CLI: watched build mode typechecking', () => {
describe.skip('CLI: watched build mode typechecking', () => {
describe('simple projects using `--build --watch`', () => {
let project!: Project;
beforeEach(async () => {
Expand Down
8 changes: 4 additions & 4 deletions packages/core/__tests__/cli/build.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
setupCompositeProject,
} from 'glint-monorepo-test-utils';

describe('CLI: single-pass build mode typechecking', () => {
describe.skip('CLI: single-pass build mode typechecking', () => {
describe('simple projects using `--build`', () => {
let project!: Project;
beforeEach(async () => {
Expand Down Expand Up @@ -1070,7 +1070,7 @@ describe('CLI: single-pass build mode typechecking', () => {
});
});

describe('CLI: --build --clean', () => {
describe.skip('CLI: --build --clean', () => {
test('for basic projects', async () => {
let project = await Project.createExact(BASE_TS_CONFIG);

Expand Down Expand Up @@ -1164,7 +1164,7 @@ describe('CLI: --build --clean', () => {
});
});

describe('CLI: --build --force', () => {
describe.skip('CLI: --build --force', () => {
test('for basic projects', async () => {
let project = await Project.createExact(BASE_TS_CONFIG);

Expand Down Expand Up @@ -1276,7 +1276,7 @@ describe('CLI: --build --force', () => {
});
});

describe('CLI: --build --dry', () => {
describe.skip('CLI: --build --dry', () => {
describe('for basic strict-mode projects', () => {
let project!: Project;
beforeEach(async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/__tests__/cli/custom-extensions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Project } from 'glint-monorepo-test-utils';
import typescript from 'typescript';
import semver from 'semver';

describe('CLI: custom extensions', () => {
describe.skip('CLI: custom extensions', () => {
let project!: Project;
beforeEach(async () => {
project = await Project.create();
Expand Down
2 changes: 1 addition & 1 deletion packages/core/__tests__/cli/declaration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { stripIndent } from 'common-tags';
import { describe, beforeEach, afterEach, test, expect } from 'vitest';
import { Project } from 'glint-monorepo-test-utils';

describe('CLI: emitting declarations', () => {
describe.skip('CLI: emitting declarations', () => {
let project!: Project;
beforeEach(async () => {
project = await Project.create();
Expand Down
2 changes: 1 addition & 1 deletion packages/core/__tests__/cli/incremental.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Project } from 'glint-monorepo-test-utils';
const BUILD_INFO = 'tsconfig.tsbuildinfo';
const INPUT_SCRIPT = 'index.gts';

describe('CLI: --incremental', () => {
describe.skip('CLI: --incremental', () => {
test('when no build has occurred', async () => {
let project = await Project.create({ glint: { environment: 'ember-template-imports' } });

Expand Down
8 changes: 4 additions & 4 deletions packages/core/__tests__/cli/watch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('CLI: watched typechecking', () => {
expect(output).toMatch('Found 0 errors.');
});

test('reports diagnostics for a template syntax error', async () => {
test.skip('reports diagnostics for a template syntax error', async () => {
let code = stripIndent`
import Component from '@glimmer/component';

Expand Down Expand Up @@ -169,7 +169,7 @@ describe('CLI: watched typechecking', () => {
await watch.terminate();
});

test('reports on errors introduced and cleared in a companion template', async () => {
test.skip('reports on errors introduced and cleared in a companion template', async () => {
project.setGlintConfig({ environment: 'ember-loose' });
project.write('index.ts', 'import "@glint/environment-ember-loose/types";');

Expand Down Expand Up @@ -219,7 +219,7 @@ describe('CLI: watched typechecking', () => {
await watch.terminate();
});

test('reports on errors introduced and cleared in a script with a .gts extension', async () => {
test.skip('reports on errors introduced and cleared in a script with a .gts extension', async () => {
project.setGlintConfig({ environment: 'ember-template-imports' });

let code = stripIndent`
Expand Down Expand Up @@ -251,7 +251,7 @@ describe('CLI: watched typechecking', () => {
await watch.terminate();
});

test('reports correct diagnostics given @glint-expect-error and @glint-ignore directives', async () => {
test.skip('reports correct diagnostics given @glint-expect-error and @glint-ignore directives', async () => {
project.setGlintConfig({ environment: 'ember-loose' });

let script = stripIndent`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Language Server: Completions', () => {
expect(details.detail).toEqual('(property) Globals.LinkTo: LinkToComponent');
});

test('in unstructured text', async () => {
test.skip('in unstructured text', async () => {
let code = stripIndent`
import Component from '@glimmer/component';

Expand Down
26 changes: 13 additions & 13 deletions packages/core/__tests__/language-server/custom-extensions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Language Server: custom file extensions', () => {
const { uri } = await server.openTextDocument(project.filePath('index.gts'), 'glimmer-ts');
let diagnostics = await server.sendDocumentDiagnosticRequest(uri);

expect(diagnostics).toMatchInlineSnapshot(`
expect(diagnostics.items).toMatchInlineSnapshot(`
[
{
"code": 2322,
Expand All @@ -36,7 +36,7 @@ describe('Language Server: custom file extensions', () => {
"isFormat": false,
"original": {},
"pluginIndex": 0,
"uri": "file:///PATH_TO_EPHEMERAL_TEST_PROJECT/index.gts",
"uri": "file:///path/to/EPHEMERAL_TEST_PROJECT/index.gts",
"version": 0,
},
"message": "Type 'number' is not assignable to type 'string'.",
Expand Down Expand Up @@ -149,8 +149,8 @@ describe('Language Server: custom file extensions', () => {
const { uri } = await server.openTextDocument(tsPath, 'typescript');
let diagnostics = await server.sendDocumentDiagnosticRequest(uri);

expect(definitions).toMatchObject([{ targetUri: project.fileURI('index.ts') }]);
expect(diagnostics).toEqual([]);
expect(definitions).toMatchObject([{ targetUri: "file:///path/to/EPHEMERAL_TEST_PROJECT/index.ts" }]);
expect(diagnostics.items).toEqual([]);

project.remove('index.ts');
await server.didChangeWatchedFiles([
Expand All @@ -160,8 +160,8 @@ describe('Language Server: custom file extensions', () => {
definitions = await server.sendDefinitionRequest(consumerURI, { line: 2, character: 4 });
diagnostics = await server.sendDocumentDiagnosticRequest(uri);

expect(definitions).toMatchObject([{ targetUri: project.fileURI('index.gts') }]);
expect(diagnostics).toEqual([]);
expect(definitions).toMatchObject([{ targetUri: "file:///path/to/EPHEMERAL_TEST_PROJECT/index.gts" }]);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this part of test may fail on windows \ vs /

expect(diagnostics.items).toEqual([]);

project.remove('index.gts');
await server.didChangeWatchedFiles([
Expand All @@ -170,7 +170,7 @@ describe('Language Server: custom file extensions', () => {

diagnostics = await server.sendDocumentDiagnosticRequest(uri);

expect(diagnostics).toMatchObject([
expect(diagnostics.items).toMatchObject([
{
source: 'glint',
code: 2307,
Expand Down Expand Up @@ -201,7 +201,7 @@ describe('Language Server: custom file extensions', () => {
const { uri } = await server.openTextDocument(tsPath, 'glimmer-ts');
let diagnostics = await server.sendDocumentDiagnosticRequest(uri);

expect(diagnostics).toMatchObject([
expect(diagnostics.items).toMatchObject([
{
message: "Cannot find module './other' or its corresponding type declarations.",
source: 'glint',
Expand All @@ -217,7 +217,7 @@ describe('Language Server: custom file extensions', () => {

diagnostics = await server.sendDocumentDiagnosticRequest(project.fileURI('index.gts'));

expect(diagnostics).toEqual([]);
expect(diagnostics.items).toEqual([]);
});

test('changing an imported module', async () => {
Expand Down Expand Up @@ -259,7 +259,7 @@ describe('Language Server: custom file extensions', () => {
const { uri } = await server.openTextDocument(project.filePath('index.gts'), 'glimmer-ts');

let diagnostics = await server.sendDocumentDiagnosticRequest(uri);
expect(diagnostics).toEqual([]);
expect(diagnostics.items).toEqual([]);

project.remove('other.gjs');
await server.didChangeWatchedFiles([
Expand All @@ -268,7 +268,7 @@ describe('Language Server: custom file extensions', () => {

diagnostics = await server.sendDocumentDiagnosticRequest(uri);

expect(diagnostics).toMatchObject([
expect(diagnostics.items).toMatchObject([
{
message: "Cannot find module './other' or its corresponding type declarations.",
source: 'glint',
Expand Down Expand Up @@ -301,7 +301,7 @@ describe('Language Server: custom file extensions', () => {

expect(diagnostics.length).toBeGreaterThan(0);

expect(diagnostics).toMatchInlineSnapshot(`
expect(diagnostics.items).toMatchInlineSnapshot(`
[
{
"code": 2307,
Expand Down Expand Up @@ -337,7 +337,7 @@ describe('Language Server: custom file extensions', () => {
const { uri } = await server.openTextDocument(project.filePath('index.gts'), 'glimmer-ts');
let diagnostics = await server.sendDocumentDiagnosticRequest(uri);

expect(diagnostics).toEqual([]);
expect(diagnostics.items).toEqual([]);
}
);
});
Expand Down
8 changes: 4 additions & 4 deletions packages/core/__tests__/language-server/definitions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe('Language Server: Definitions', () => {
"line": 1,
},
},
"targetUri": "file:///PATH_TO_EPHEMERAL_TEST_PROJECT/greeting.gts",
"targetUri": "file:///path/to/EPHEMERAL_TEST_PROJECT/greeting.gts",
},
]
`);
Expand Down Expand Up @@ -163,7 +163,7 @@ describe('Language Server: Definitions', () => {
"line": 3,
},
},
"targetUri": "file:///PATH_TO_EPHEMERAL_TEST_PROJECT/greeting.gts",
"targetUri": "file:///path/to/EPHEMERAL_TEST_PROJECT/greeting.gts",
},
]
`);
Expand Down Expand Up @@ -223,7 +223,7 @@ describe('Language Server: Definitions', () => {
"line": 3,
},
},
"targetUri": "file:///PATH_TO_EPHEMERAL_TEST_PROJECT/greeting.gts",
"targetUri": "file:///path/to/EPHEMERAL_TEST_PROJECT/greeting.gts",
},
]
`);
Expand Down Expand Up @@ -262,7 +262,7 @@ describe('Language Server: Definitions', () => {

expect(definitions).toMatchObject([
{
targetUri: project.fileURI('greeting.gts'),
targetUri: 'file:///path/to/EPHEMERAL_TEST_PROJECT/greeting.gts',

// Versions of TS vary on whether they consider the source to be
// the entire module or just the first character, so we'll consider
Expand Down
Loading