Skip to content

Commit 9b136d9

Browse files
ConorSheehan1conorsheehan-ow
authored andcommitted
fix: update migration docs urls to include new /migration/ path (#572)
Co-authored-by: conors_ow <[email protected]>
1 parent 8aed512 commit 9b136d9

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

docs/guides/error-warning-details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Example:
1010
```txt
1111
Incorrect State for operation: "${gotState}", allowed States: "[${wantedStates.join(',')}]"
1212
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
13-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything
13+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything
1414
```
1515

1616
Details:

packages/mongodb-memory-server-core/src/__tests__/__snapshots__/MongoMemoryReplSet.test.ts.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,45 @@ exports[`MongoMemoryReplSet getters & setters setter of "replSetOpts" should thr
77
exports[`MongoMemoryReplSet getters & setters state errors setter of "binaryOpts" should throw an error if state is not "stopped" 1`] = `
88
"Incorrect State for operation: \\"init\\", allowed States: \\"[stopped]\\"
99
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
10-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
10+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
1111
`;
1212

1313
exports[`MongoMemoryReplSet getters & setters state errors setter of "instanceOpts" should throw an error if state is not "stopped" 1`] = `
1414
"Incorrect State for operation: \\"init\\", allowed States: \\"[stopped]\\"
1515
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
16-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
16+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
1717
`;
1818

1919
exports[`MongoMemoryReplSet getters & setters state errors setter of "replSetOpts" should throw an error if state is not "stopped" 1`] = `
2020
"Incorrect State for operation: \\"init\\", allowed States: \\"[stopped]\\"
2121
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
22-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
22+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
2323
`;
2424

2525
exports[`single server replset "_initReplSet" should throw an error if _state is not "init" 1`] = `
2626
"Incorrect State for operation: \\"running\\", allowed States: \\"[init]\\"
2727
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
28-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
28+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
2929
`;
3030

3131
exports[`single server replset "_initReplSet" should throw if server count is 0 or less 1`] = `"One or more servers are required."`;
3232

3333
exports[`single server replset "getUri" should throw an error if _state is not "running" or "init" 1`] = `
3434
"Incorrect State for operation: \\"stopped\\", allowed States: \\"[running,init]\\"
3535
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
36-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
36+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
3737
`;
3838

3939
exports[`single server replset "new" should throw an error if replSet count is 0 or less 1`] = `"ReplSet Count needs to be 1 or higher! (specified count: \\"0\\")"`;
4040

4141
exports[`single server replset "start" should throw an error if _state is not "stopped" 1`] = `
4242
"Incorrect State for operation: \\"running\\", allowed States: \\"[stopped]\\"
4343
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
44-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
44+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
4545
`;
4646

4747
exports[`single server replset "waitUntilRunning" should throw an error if _state is not "init" 1`] = `
4848
"Incorrect State for operation: \\"stopped\\", allowed States: \\"[running,init]\\"
4949
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
50-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
50+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
5151
`;

packages/mongodb-memory-server-core/src/__tests__/__snapshots__/MongoMemoryServer.test.ts.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`MongoMemoryServer "createAuth" should throw an error if called without
55
exports[`MongoMemoryServer cleanup() should throw an error if state is not "stopped" 1`] = `
66
"Incorrect State for operation: \\"new\\", allowed States: \\"[stopped]\\"
77
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
8-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
8+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
99
`;
1010

1111
exports[`MongoMemoryServer ensureInstance() should throw an error if "instanceInfo" is undefined but "_state" is "running" 1`] = `"{\\"isRunning\\":true,\\"message\\":\\"\\\\\\"ensureInstance\\\\\\" failed, because state was \\\\\\"running\\\\\\" but \\\\\\"instanceInfo\\\\\\" was undefined!\\"}"`;
@@ -15,31 +15,31 @@ exports[`MongoMemoryServer ensureInstance() should throw an error if no "instanc
1515
exports[`MongoMemoryServer ensureInstance() should throw an error if the given "_state" has no case 1`] = `
1616
"Incorrect State for operation: \\"not Existing\\", allowed States: \\"[running,new,stopped,starting]\\"
1717
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
18-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
18+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
1919
`;
2020

2121
exports[`MongoMemoryServer getUri() should throw an state error, if not starting or running 1`] = `
2222
"Incorrect State for operation: \\"new\\", allowed States: \\"[running,starting]\\"
2323
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
24-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
24+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
2525
`;
2626

2727
exports[`MongoMemoryServer getUri() should throw an state error, if not starting or running 2`] = `
2828
"Incorrect State for operation: \\"new\\", allowed States: \\"[running,starting]\\"
2929
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
30-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
30+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
3131
`;
3232

3333
exports[`MongoMemoryServer start() "createAuth" should not be called if "disabled" is true 1`] = `"Unauthorized"`;
3434

3535
exports[`MongoMemoryServer start() should throw an error if state is not "new" or "stopped" 1`] = `
3636
"Incorrect State for operation: \\"starting\\", allowed States: \\"[new,stopped]\\"
3737
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
38-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
38+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
3939
`;
4040

4141
exports[`MongoMemoryServer start() should throw an error if state is not "new" or "stopped" 2`] = `
4242
"Incorrect State for operation: \\"running\\", allowed States: \\"[new,stopped]\\"
4343
This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:
44-
https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
44+
https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything"
4545
`;

packages/mongodb-memory-server-core/src/util/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class StateError extends Error {
77
','
88
)}]"\n` +
99
'This may be because of using a v6.x way of calling functions, look at the following guide if anything applies:\n' +
10-
'https://nodkz.github.io/mongodb-memory-server/docs/guides/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything'
10+
'https://nodkz.github.io/mongodb-memory-server/docs/guides/migration/migrate7#no-function-other-than-start-create-ensureinstance-will-be-starting-anything'
1111
);
1212
}
1313
}

0 commit comments

Comments
 (0)