Question: I think a Guid is generally the preferred unique table row identifier from a dba perspective. But I'm working on a project where the developers and managers appear to want a way to reference things by an int value. I can understand their perspective b/c they want a simple and easy way to reference different entities.

I was thinking about using a pattern for my tables where each table would have an int Id column representing the PK column but then it would also include a Guid column as a globally unique identifier. How common is it to use this type of pattern?

Answer: 
There is two ways to achieve this. One is using the `Config` option, as mentioned by @Aldarund. You can read about it [here](https://vue-test-utils.vuejs.org/api/#config).

If you are using Jest, I recommend doing this in the `jest.init.js` file:

```
import { config } from '@vue/test-utils'

config.mocks['$apiUrls'] = {
  'some/endpoint'
}

```

Then add this to the `jest` section of your `package.json`:

```
"setupFiles": [
  "<rootDir>/jest.init.js"
]

```

Now it is globally mocked. If you want to do this on a per test basis, you can use the `mocks` mounting option:

```
const wrapper = shallowMount(Foo, {
  mocks: {
    $apiUrls: 'some/endpoint'
  }
})

```

Hopefully this helps!

If you are interested I am compiling a collection of simple guides on how to test Vue components [here](https://github.com/lmiller1990/vue-testing-handbook). It's under development, but feel free to ask make an issue if you need help with other related things to testing Vue components.
You can do it with [vue-test-utils beta 15](https://github.com/vuejs/vue-test-utils/issues/325#issuecomment-383098083) and later. 

Here [docs](https://vue-test-utils.vuejs.org/api/config.html#mocks)

And some example would be:

```
import VueTestUtils from '@vue/test-utils'

VueTestUtils.config.mocks['$apiUrls'] = {
  ...
}

```