Skip to content

Commit

Permalink
chore: Fix typos (#15527)
Browse files Browse the repository at this point in the history
  • Loading branch information
co63oc authored Feb 27, 2025
1 parent e6d71a2 commit 28b4469
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion e2e/__tests__/multiProjectRunner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ test('resolves projects and their <rootDir> properly', () => {
'project2/project2.conf.json': JSON.stringify({
id: 'project2',
rootDir: '../', // root dir is set to the top level
setupFiles: ['<rootDir>/project2/project2_setup.js'], // rootDir shold be of the
setupFiles: ['<rootDir>/project2/project2_setup.js'], // rootDir should be of the
testEnvironment: 'node',
testPathIgnorePatterns: ['project1'],
}),
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/runtimeInternalModuleRegistry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Runtime Internal Module Registry', () => {
// used.
//
// This test verifies that that behavior doesn't happen anymore, and correctly
// uses two module registries: an internal registry that's used specificly by
// uses two module registries: an internal registry that's used specifically by
// Jest to require any internal modules used when setting up the test
// environment, and a "normal" module registry that's used by the actual test
// code (and can safely be cleared after every test)
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/testFailingSnapshot.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('test.failing', () => {
expect('0').toMatchSnapshot();
});

test.failing('snapshot doesnt exist', () => {
test.failing("snapshot doesn't exist", () => {
expect('0').toMatchSnapshot();
});

Expand Down
4 changes: 2 additions & 2 deletions packages/diff-sequences/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,9 +573,9 @@ describe('all common items inside recursive', () => {
// depth 1 common items do not follow prev nor last forward segment when d === 8
// depth 2 preceding common item follows prev forward segment when d === 4
// depth 2 following transposed again so unswap swapped args
// depth 2 following common items do not follow prev nor last foward segment when d === 4
// depth 2 following common items do not follow prev nor last forward segment when d === 4
// depth 3 preceding common item follows last forward segment when d === 2
// depth 3 following rransposed again so swap args again
// depth 3 following transposed again so swap args again
// depth 3 following common item follows last forward segment when d === 2
const a = [
'delete1_depth2_preceding_prevF',
Expand Down
2 changes: 1 addition & 1 deletion packages/diff-sequences/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
// Forward diagonals kF:
// zero diagonal intersects top left corner
// positive diagonals intersect top edge
// negative diagonals insersect left edge
// negative diagonals intersect left edge
//
// Reverse diagonals kR:
// zero diagonal intersects bottom right corner
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`beforeAll is exectued correctly 1`] = `
exports[`beforeAll is executed correctly 1`] = `
"start_describe_definition: describe 1
add_hook: beforeAll
add_test: test 1
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-circus/src/__tests__/hooks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test('multiple before each hooks in one describe are executed in the right order
expect(stdout).toMatchSnapshot();
});

test('beforeAll is exectued correctly', () => {
test('beforeAll is executed correctly', () => {
const {stdout} = runTest(`
describe('describe 1', () => {
beforeAll(() => console.log('> beforeAll 1'));
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-resolve/src/__tests__/resolve.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ describe('nodeModulesPaths', () => {
expect(result.at(-1)).toBe('./customFolder');
});

it('provides custom module multy paths after node_modules', () => {
it('provides custom module multi paths after node_modules', () => {
const src = require.resolve('../');
const result = nodeModulesPaths(src, {
paths: ['./customFolder', './customFolder2', './customFolder3'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ describe('Runtime requireModule', () => {
expect(exports1).toBe(exports2);
});

it('provides manual mock when real module doesnt exist', async () => {
it("provides manual mock when real module doesn't exist", async () => {
const runtime = await createRuntime(__filename);
const exports = runtime.requireModule(
runtime.__mockRootPath,
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-snapshot/src/State.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default class SnapshotState {
// These are the conditions on when to write snapshots:
// * There's no snapshot file in a non-CI environment.
// * There is a snapshot file and we decided to update the snapshot.
// * There is a snapshot file, but it doesn't have this snaphsot.
// * There is a snapshot file, but it doesn't have this snapshot.
// These are the conditions on when not to write snapshots:
// * The update flag is set to 'none'.
// * There's no snapshot file or a file without this snapshot on a CI environment.
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-snapshot/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ const _toMatchSnapshot = (config: MatchSnapshotConfig) => {
const {testFailing = false} = context;

if (!testFailing && context.dontThrow) {
// Supress errors while running tests
// Suppress errors while running tests
context.dontThrow();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-types/src/Circus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export type AsyncEvent =
// test failure is defined by presence of errors in `test.errors`,
// `test_done` indicates that the test and all its hooks were run,
// and nothing else will change it's state in the future. (except third
// party extentions/plugins)
// party extensions/plugins)
name: 'test_done';
test: TestEntry;
}
Expand Down

0 comments on commit 28b4469

Please sign in to comment.