mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
fix(common/utils): hack fixtures test data moved to design-system, update accordingly
This commit is contained in:
parent
752250fd7f
commit
04c8e6619d
4 changed files with 7 additions and 4 deletions
|
@ -19,7 +19,7 @@ react_library(
|
|||
jest_test(
|
||||
src = ":utils",
|
||||
deps = [
|
||||
"//hack/fixtures",
|
||||
"//src/design-system/shared-types",
|
||||
"//src/rpc/shared",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { hasPermission, permissions, hasPermissionOrAdmin } from './hasPermission';
|
||||
import { Role } from 'roleypoly/src/rpc/shared';
|
||||
import { guildRoles } from 'roleypoly/hack/fixtures/storyData';
|
||||
import { guildRoles } from 'roleypoly/src/design-system/shared-types/storyData';
|
||||
|
||||
const roles: Role.AsObject[] = [
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { DiscordUser } from 'roleypoly/src/rpc/shared';
|
||||
import { user } from 'roleypoly/hack/fixtures/storyData';
|
||||
import { user } from 'roleypoly/src/design-system/shared-types/storyData';
|
||||
import { AsObjectToProto } from './protoReflection';
|
||||
|
||||
it('converts a RoleypolyUser.AsObject back to protobuf', () => {
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
load("//:hack/react.bzl", "react_library")
|
||||
|
||||
package(default_visibility = ["//src/design-system:__subpackages__"])
|
||||
package(default_visibility = [
|
||||
"//src/common/utils:__subpackages__",
|
||||
"//src/design-system:__subpackages__",
|
||||
])
|
||||
|
||||
react_library(
|
||||
name = "shared-types",
|
||||
|
|
Loading…
Add table
Reference in a new issue